public sealed override bool Equals(Object obj) { NativeFormatRuntimePropertyInfo other = obj as NativeFormatRuntimePropertyInfo; 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); }
public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) { if (other == null) { throw new ArgumentNullException(nameof(other)); } NativeFormatRuntimePropertyInfo otherProperty = other as NativeFormatRuntimePropertyInfo; if (otherProperty == null) { return(false); } if (!(_reader == otherProperty._reader)) { return(false); } if (!(_propertyHandle.Equals(otherProperty._propertyHandle))) { return(false); } if (!(_definingTypeInfo.Equals(otherProperty._definingTypeInfo))) { return(false); } return(true); }