示例#1
0
        public override bool Equals(object obj)
        {
            if (
                obj is TargetFeedConfig other &&
                (ContentType == other.ContentType) &&
                TargetURL.Equals(other.TargetURL, StringComparison.OrdinalIgnoreCase) &&
                (Type == other.Type) &&
                Token.Equals(other.Token) &&
                LatestLinkShortUrlPrefix.Equals(other.LatestLinkShortUrlPrefix, StringComparison.OrdinalIgnoreCase) &&
                (AssetSelection == other.AssetSelection) &&
                (Isolated == other.Isolated) &&
                (Internal == other.Internal) &&
                (AllowOverwrite == other.AllowOverwrite) &&
                (Flatten == other.Flatten))
            {
                if (FilenamesToExclude is null)
                {
                    return(other.FilenamesToExclude is null);
                }

                if (other.FilenamesToExclude is null)
                {
                    return(false);
                }

                return(FilenamesToExclude.SequenceEqual(other.FilenamesToExclude));
            }

            return(false);
        }
 public override bool Equals(object obj)
 {
     return
         (obj is TargetFeedConfig other &&
          (ContentType == other.ContentType) &&
          TargetURL.Equals(other.TargetURL, StringComparison.OrdinalIgnoreCase) &&
          (Type == other.Type) &&
          Token.Equals(other.Token) &&
          LatestLinkShortUrlPrefix.Equals(other.LatestLinkShortUrlPrefix, StringComparison.OrdinalIgnoreCase) &&
          (AssetSelection == other.AssetSelection) &&
          (Isolated == other.Isolated) &&
          (Internal == other.Internal) &&
          (AllowOverwrite == other.AllowOverwrite));
 }