コード例 #1
0
ファイル: TargetFeedConfig.cs プロジェクト: tkapin/arcade
        public override bool Equals(object obj)
        {
            if (
                obj is TargetFeedConfig other &&
                (ContentType == other.ContentType) &&
                ((TargetURL is null && other.TargetURL is null) || TargetURL.Equals(other.TargetURL, StringComparison.OrdinalIgnoreCase)) &&
                (Type == other.Type) &&
                ((Token is null && other.Token is null) || Token.Equals(other.Token)) &&
                LatestLinkShortUrlPrefixes.SequenceEqual(other.LatestLinkShortUrlPrefixes) &&
                (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);
        }
コード例 #2
0
 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));
 }