Esempio n. 1
0
        public sealed override bool Equals(Object obj)
        {
            EcmaFormatRuntimePropertyInfo other = obj as EcmaFormatRuntimePropertyInfo;

            if (other == null)
            {
                return(false);
            }
            if (!(_reader == other._reader))
            {
                return(false);
            }
            if (!(_propertyHandle.Equals(other._propertyHandle)))
            {
                return(false);
            }
            if (!(ContextTypeInfo.Equals(other.ContextTypeInfo)))
            {
                return(false);
            }
            if (!(_reflectedType.Equals(other._reflectedType)))
            {
                return(false);
            }
            return(true);
        }
Esempio n. 2
0
        public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            EcmaFormatRuntimePropertyInfo otherProperty = other as EcmaFormatRuntimePropertyInfo;

            if (otherProperty == null)
            {
                return(false);
            }
            if (!(_reader == otherProperty._reader))
            {
                return(false);
            }
            if (!(_propertyHandle.Equals(otherProperty._propertyHandle)))
            {
                return(false);
            }
            return(true);
        }