Beispiel #1
0
        private McgTypeInfo(int typeIndex, int moduleIndex)
        {
            m_TypeIndex   = typeIndex;
            m_ModuleIndex = moduleIndex;
#if DEBUG
            m_InterfaceData_DebugOnly = default(McgInterfaceData);
#endif
        }
Beispiel #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
        }
Beispiel #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));
        }
Beispiel #4
0
        private McgTypeInfo(int typeIndex, int moduleIndex)
        {
            m_TypeIndex = typeIndex;
            m_ModuleIndex = moduleIndex;
#if DEBUG
            m_InterfaceData_DebugOnly = default(McgInterfaceData);
#endif
        }
Beispiel #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
        }