Пример #1
0
        /// <summary>
        /// Returns true if SDCFormPackageMetaData instances are equal
        /// </summary>
        /// <param name="other">Instance of SDCFormPackageMetaData to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SDCFormPackageMetaData other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     BaseURI == other.BaseURI ||
                     BaseURI != null &&
                     BaseURI.Equals(other.BaseURI)
                     ) &&
                 (
                     ContentDomain == other.ContentDomain ||
                     ContentDomain != null &&
                     ContentDomain.Equals(other.ContentDomain)
                 ) &&
                 (
                     FormManagerURI == other.FormManagerURI ||
                     FormManagerURI != null &&
                     FormManagerURI.Equals(other.FormManagerURI)
                 ) &&
                 (
                     SdcSchemaVersion == other.SdcSchemaVersion ||
                     SdcSchemaVersion != null &&
                     SdcSchemaVersion.Equals(other.SdcSchemaVersion)
                 ) &&
                 (
                     PkgLineage == other.PkgLineage ||
                     PkgLineage != null &&
                     PkgLineage.Equals(other.PkgLineage)
                 ) &&
                 (
                     Version == other.Version ||
                     Version != null &&
                     Version.SequenceEqual(other.Version)
                 ) &&
                 (
                     Format == other.Format ||
                     Format != null &&
                     Format.Equals(other.Format)
                 ));
        }