// Token: 0x06004865 RID: 18533 RVA: 0x00105C24 File Offset: 0x00103E24
 internal void CheckTypeNameConflict(string strTypeName, TypeBuilder enclosingType)
 {
     for (int i = 0; i < this.m_moduleBuilderList.Count; i++)
     {
         ModuleBuilder moduleBuilder = this.m_moduleBuilderList[i];
         moduleBuilder.CheckTypeNameConflict(strTypeName, enclosingType);
     }
 }
예제 #2
0
 public void CheckTypeNameConflict(string strTypeName, TypeBuilder?enclosingType)
 {
     for (int i = 0; i < _moduleBuilderList.Count; i++)
     {
         ModuleBuilder curModule = _moduleBuilderList[i];
         curModule.CheckTypeNameConflict(strTypeName, enclosingType);
     }
 }
예제 #3
0
        // Helper to ensure the type name is unique underneath assemblyBuilder
        internal void CheckTypeNameConflict(String strTypeName, TypeBuilder enclosingType)
        {
            for (int i = 0; i < m_moduleBuilderList.Count; i++)
            {
                ModuleBuilder curModule = m_moduleBuilderList[i];
                curModule.CheckTypeNameConflict(strTypeName, enclosingType);
            }

            // Right now dynamic modules can only be added to dynamic assemblies in which
            // all modules are dynamic. Otherwise we would also need to check loaded types.
            // We only need to make this test for non-nested types since any
            // duplicates in nested types will be caught at the top level.
            //      if (enclosingType == null && m_assembly.GetType(strTypeName, false, false) != null)
            //      {
            //          // Cannot have two types with the same name
            //          throw new ArgumentException(SR.Argument_DuplicateTypeName);
            //      }
        }
예제 #4
0
 /// <summary>
 /// Helper to ensure the type name is unique underneath assemblyBuilder.
 /// </summary>
 internal void CheckTypeNameConflict(string strTypeName, TypeBuilder?enclosingType)
 {
     _manifestModuleBuilder.CheckTypeNameConflict(strTypeName, enclosingType);
 }