Наследование: RuntimeFieldInfo, ISerializable
Пример #1
0
        internal override bool CacheEquals(object o)
        {
            MdFieldInfo info = o as MdFieldInfo;

            if (info == null)
            {
                return(false);
            }
            return((info.m_tkField == this.m_tkField) && base.m_declaringType.GetTypeHandleInternal().GetModuleHandle().Equals(info.m_declaringType.GetTypeHandleInternal().GetModuleHandle()));
        }
Пример #2
0
        internal override bool CacheEquals(object o)
        {
            MdFieldInfo m = o as MdFieldInfo;

            if ((object)m == null)
            {
                return(false);
            }

            return(m.m_tkField == m_tkField &&
                   m_declaringType.GetTypeHandleInternal().GetModuleHandle().Equals(
                       m.m_declaringType.GetTypeHandleInternal().GetModuleHandle()));
        }
Пример #3
0
        internal override bool CacheEquals(object o)
        {
            MdFieldInfo mdFieldInfo = o as MdFieldInfo;

            if (mdFieldInfo == null || mdFieldInfo.m_tkField != this.m_tkField)
            {
                return(false);
            }
            RuntimeTypeHandle typeHandleInternal = this.m_declaringType.GetTypeHandleInternal();
            ModuleHandle      moduleHandle1      = typeHandleInternal.GetModuleHandle();
            // ISSUE: explicit reference operation
            // ISSUE: variable of a reference type
            ModuleHandle& local = @moduleHandle1;

            typeHandleInternal = mdFieldInfo.m_declaringType.GetTypeHandleInternal();
            ModuleHandle moduleHandle2 = typeHandleInternal.GetModuleHandle();

            // ISSUE: explicit reference operation
            return((^ local).Equals(moduleHandle2));
        }
        internal override bool CacheEquals(object o)
        {
            MdFieldInfo mdFieldInfo = o as MdFieldInfo;

            return(mdFieldInfo != null && mdFieldInfo.m_tkField == this.m_tkField && this.m_declaringType.GetTypeHandleInternal().GetModuleHandle().Equals(mdFieldInfo.m_declaringType.GetTypeHandleInternal().GetModuleHandle()));
        }