Example #1
0
        private McgTypeInfo(int typeIndex, int moduleIndex)
        {
            m_TypeIndex   = typeIndex;
            m_ModuleIndex = moduleIndex;
#if DEBUG
            m_InterfaceData_DebugOnly = default(McgInterfaceData);
#endif
        }
Example #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public McgTypeInfo(int index, McgModule mcgModule)
        {
            m_TypeIndex   = index;
            m_ModuleIndex = McgModuleManager.GetModuleIndex(mcgModule);
#if DEBUG
            m_InterfaceData_DebugOnly = mcgModule.GetInterfaceDataByIndex(m_TypeIndex);
#endif
        }
Example #3
0
        internal unsafe RuntimeTypeHandle FindTypeSupportDynamic(Func <RuntimeTypeHandle, bool> predicate)
        {
            for (int i = 0; i < m_interfaceData.Length; i++)
            {
                McgInterfaceData data = m_interfaceData[i];

                if (!data.DynamicAdapterClassType.IsNull() && predicate(data.ItfType))
                {
                    return(data.ItfType);
                }
            }

            return(default(RuntimeTypeHandle));
        }
Example #4
0
        private McgTypeInfo(int typeIndex, int moduleIndex)
        {
            m_TypeIndex = typeIndex;
            m_ModuleIndex = moduleIndex;
#if DEBUG
            m_InterfaceData_DebugOnly = default(McgInterfaceData);
#endif
        }
Example #5
0
        /// <summary>
        /// Constructor
        /// </summary>
        public McgTypeInfo(int index, McgModule mcgModule)
        {
            m_TypeIndex = index;
            m_ModuleIndex = McgModuleManager.GetModuleIndex(mcgModule);
#if DEBUG
            m_InterfaceData_DebugOnly = mcgModule.GetInterfaceDataByIndex(m_TypeIndex);
#endif
        }