Mono.VisualC.Interop.CppType.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
		public override bool Equals (object obj)
		{
			if (obj == null)
				return false;
			if (obj.GetType () == typeof (CppTypes))
				return Equals (new CppType (obj));
			if (obj.GetType () != typeof (CppType))
				return false;
			CppType other = (CppType)obj;

			return (((internalModifiers == null || !internalModifiers.Any ()) &&
			         (other.internalModifiers == null || !other.internalModifiers.Any ())) ||
			        (internalModifiers != null && other.internalModifiers != null &&
			         CppModifiers.NormalizeOrder (internalModifiers).SequenceEqual (CppModifiers.NormalizeOrder (other.internalModifiers)))) &&

			       (((Namespaces == null || !Namespaces.Any ()) &&
			         (other.Namespaces == null || !other.Namespaces.Any ())) ||
			        (Namespaces != null && other.Namespaces != null &&
			         Namespaces.SequenceEqual (other.Namespaces))) &&

			       ElementType == other.ElementType &&
			       ElementTypeName == other.ElementTypeName;
		}