public override bool Equals(object obj) { if (obj == this) { return(true); } if (obj == null || obj.GetType() != GetType()) { return(false); } var that = (CustomFileInfo)obj; return(_dirNameInfo.Name.Equals(that._dirNameInfo.Name) && Name.Equals(that.Name) && Size == that.Size && Src.CompareContent(that.Src)); }