Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            VirtualPropertyBase other = obj as VirtualPropertyBase;

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

            // We don't need to compare the getters and setters.
            // But do we need to compare the contexts and return types?
            return
                (_name == other._name &&
                 _declaringType.Equals(other._declaringType) &&
                 _propertyType == other._propertyType &&
                 CollectionServices.CompareArrays(GetIndexParametersNoCopy(), other.GetIndexParametersNoCopy()));
        }