public bool Equals(object _obj, Dictionary <DictionaryEntry, bool> visitedPairs)
        {
            IAdaptingType obj = _obj as IAdaptingType;

            if (obj == null)
            {
                return(false);
            }

            if (Object.ReferenceEquals(this, _obj))
            {
                return(true);
            }

            return(obj.Equals(realType, visitedPairs));
        }
Esempio n. 2
0
        public bool Equals(object _obj, Dictionary <DictionaryEntry, bool> visitedPairs)
        {
            NamedObject obj = _obj as NamedObject;

            if (obj == null)
            {
                return(false);
            }

            if (Object.ReferenceEquals(this, _obj))
            {
                return(true);
            }

            return(objectName.Equals(obj.objectName) && typedObject.Equals(obj.typedObject, visitedPairs));
        }
Esempio n. 3
0
 public override bool Equals(object _obj)
 {
     return(Object != null?Object.Equals(_obj) : _obj == null);
 }