public sealed override bool Equals(Object obj)
        {
            RuntimePlainConstructorInfo <TRuntimeMethodCommon> other = obj as RuntimePlainConstructorInfo <TRuntimeMethodCommon>;

            if (other == null)
            {
                return(false);
            }
            return(_common.Equals(other._common));
        }
Esempio n. 2
0
        public sealed override bool Equals(Object obj)
        {
            RuntimePlainConstructorInfo other = obj as RuntimePlainConstructorInfo;

            if (other == null)
            {
                return(false);
            }
            return(this._common.Equals(other._common));
        }
        public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            RuntimePlainConstructorInfo <TRuntimeMethodCommon> otherConstructor = other as RuntimePlainConstructorInfo <TRuntimeMethodCommon>;

            if (otherConstructor == null)
            {
                return(false);
            }
            return(_common.HasSameMetadataDefinitionAs(otherConstructor._common));
        }