internal TypeBuilder(string szName, int genParamPos, MethodBuilder declMeth)
 {
     this.m_declMeth = declMeth;
     this.m_DeclaringType = this.m_declMeth.GetTypeBuilder();
     this.m_module = declMeth.GetModuleBuilder();
     this.InitAsGenericParam(szName, genParamPos);
 }
Пример #2
0
 internal ParameterBuilder(
     MethodBuilder methodBuilder,
     int sequence,
     ParameterAttributes attributes,
     String strParamName)                        // can be NULL string
 {
     m_iPosition     = sequence;
     m_strParamName  = strParamName;
     m_methodBuilder = methodBuilder;
     m_strParamName  = strParamName;
     m_attributes    = attributes;
     m_pdToken       = new ParameterToken(TypeBuilder.SetParamInfo(
                                              m_methodBuilder.GetModuleBuilder().GetNativeHandle(),
                                              m_methodBuilder.GetToken().Token,
                                              sequence,
                                              attributes,
                                              strParamName));
 }
Пример #3
0
 // ctor for generic method parameter
 internal TypeBuilder(string szName, int genParamPos, MethodBuilder declMeth)
 {
     Contract.Requires(declMeth != null);
     m_declMeth = declMeth;
     m_DeclaringType =m_declMeth.GetTypeBuilder();
     m_module =declMeth.GetModuleBuilder();
     InitAsGenericParam(szName, genParamPos);
 }
Пример #4
0
 [System.Security.SecurityCritical]  // auto-generated
 internal ParameterBuilder(
     MethodBuilder   methodBuilder, 
     int             sequence, 
     ParameterAttributes attributes, 
     String             strParamName)            // can be NULL string
 {
     m_iPosition = sequence;
     m_strParamName = strParamName;
     m_methodBuilder = methodBuilder;
     m_strParamName = strParamName;
     m_attributes = attributes;
     m_pdToken = new ParameterToken( TypeBuilder.SetParamInfo(
                 m_methodBuilder.GetModuleBuilder().GetNativeHandle(),
                 m_methodBuilder.GetToken().Token, 
                 sequence, 
                 attributes, 
                 strParamName));
 }