protected bool BaseEquals(SerializationSource other)
 {
     if (this.namspace != other.namspace)
     {
         return(false);
     }
     if (this.canBeGenerated != other.canBeGenerated)
     {
         return(false);
     }
     if (this.includedTypes == null)
     {
         return(other.includedTypes == null);
     }
     if (other.includedTypes == null || this.includedTypes.Length != other.includedTypes.Length)
     {
         return(false);
     }
     for (int i = 0; i < this.includedTypes.Length; i++)
     {
         if (!this.includedTypes[i].Equals(other.includedTypes[i]))
         {
             return(false);
         }
     }
     return(true);
 }
        protected bool BaseEquals(SerializationSource other)
        {
            if (namspace != other.namspace)
            {
                return(false);
            }
            if (canBeGenerated != other.canBeGenerated)
            {
                return(false);
            }

            if (includedTypes == null)
            {
                return(other.includedTypes == null);
            }

            if (other.includedTypes == null || includedTypes.Length != other.includedTypes.Length)
            {
                return(false);
            }
            for (int n = 0; n < includedTypes.Length; n++)
            {
                if (!includedTypes[n].Equals(other.includedTypes[n]))
                {
                    return(false);
                }
            }

            return(true);
        }
示例#3
0
		protected bool BaseEquals (SerializationSource other)
		{
			if (namspace != other.namspace) return false;
			if (canBeGenerated != other.canBeGenerated) return false;
			
			if (includedTypes == null)
				return other.includedTypes == null;
			
			if (other.includedTypes == null || includedTypes.Length != other.includedTypes.Length) return false;
			for (int n=0; n<includedTypes.Length; n++)
				if (!includedTypes[n].Equals (other.includedTypes[n])) return false;

			return true;
		}
示例#4
0
        public override bool Equals(object o)
        {
            SerializationSource other = o as SerializationSource;

            if (other == null)
            {
                return(false);
            }
            if (namspace != other.namspace)
            {
                return(false);
            }
            if (canBeGenerated != other.canBeGenerated)
            {
                return(false);
            }

            if (includedTypes == null)
            {
                return(other.includedTypes == null);
            }

            if (includedTypes.Count != other.includedTypes.Count)
            {
                return(false);
            }
            for (int n = 0; n < includedTypes.Count; n++)
            {
                if (!includedTypes[n].Equals(other.includedTypes[n]))
                {
                    return(false);
                }
            }

            return(true);
        }