Carrotware.Web.UI.Components.FileData.Equals C# (CSharp) Method

Equals() public method

public Equals ( Object obj ) : bool
obj Object
return bool
        public override bool Equals(Object obj)
        {
            //Check for null and compare run-time types.
            if (obj == null || GetType() != obj.GetType()) return false;

            if (obj is FileData) {
                FileData p = (FileData)obj;
                return (String.Format("{0}", this.FullFileName).ToLowerInvariant() == String.Format("{0}", p.FullFileName).ToLowerInvariant());
            } else {
                return false;
            }
        }