44 references to Token
mscorlib (44)
system\reflection\emit\fieldbuilder.cs (1)
66
typeBuilder.TypeToken.
Token
, fieldName, signature, sigLength, m_Attributes);
system\reflection\emit\ilgenerator.cs (2)
735
tempVal = modBuilder.GetTypeToken( cls ).
Token
;
741
tempVal = modBuilder.GetTypeTokenInternal(cls).
Token
;
system\reflection\emit\methodbuilder.cs (1)
275
tkExceptionClass = dynMod.GetTypeTokenInternal(catchClass[j]).
Token
;
system\reflection\emit\modulebuilder.cs (15)
535
tr = GetTypeTokenInternal(con.ReflectedType).
Token
;
542
tr = GetTypeTokenInternal(con.DeclaringType).
Token
;
550
tr = GetTypeTokenInternal(con.ReflectedType).
Token
;
576
tr = GetTypeTokenInternal(con.ReflectedType).
Token
;
750
tkParent = GetTypeToken(method.DeclaringType).
Token
;
1846
tr = getGenericTypeDefinition ? GetTypeToken(method.DeclaringType).
Token
: GetTypeTokenInternal(method.DeclaringType).
Token
;
1885
tr = getGenericTypeDefinition ? GetTypeToken(method.DeclaringType).
Token
: GetTypeTokenInternal(method.DeclaringType).
Token
;
1905
tr = getGenericTypeDefinition ? GetTypeToken(method.DeclaringType).
Token
: GetTypeTokenInternal(method.DeclaringType).
Token
;
2078
typeSpec.
Token
, methodName, sigBytes, length));
2151
tr = GetTypeTokenInternal(field.DeclaringType).
Token
;
2174
tr = GetTypeTokenInternal(field.DeclaringType).
Token
;
2189
tr = GetTypeTokenInternal(field.ReflectedType).
Token
;
system\reflection\emit\signaturehelper.cs (3)
330
int token = m_module.GetTypeToken(t).
Token
;
353
int token = m_module.GetTypeToken(t).
Token
;
615
AddToken(clsToken.
Token
);
system\reflection\emit\typebuilder.cs (22)
663
interfaceTokens[i] = m_module.GetTypeTokenInternal(interfaces[i]).
Token
;
694
tkParent = m_module.GetTypeTokenInternal(m_typeParent).
Token
;
699
tkEnclosingType = enclosingType.m_tdType.
Token
;
708
SetClassLayout(GetModuleBuilder().GetNativeHandle(), m_tdType.
Token
, m_iPackingSize, m_iTypeSize);
726
containingAssem.DefineExportedTypeInMemory(this, m_module.m_moduleData.FileToken, m_tdType.
Token
);
1057
get { return m_tdType.
Token
; }
1648
DefineMethodImpl(m_module.GetNativeHandle(), m_tdType.
Token
, tkBody.Token, tkDecl.Token);
2194
m_tdType.
Token
,
2238
tkType = m_module.GetTypeTokenInternal( eventtype ).
Token
;
2243
m_tdType.
Token
,
2303
interfaceTokens[i] = m_module.GetTypeTokenInternal(m_typeInterfaces[i]).
Token
;
2308
tkParent = m_module.GetTypeTokenInternal(m_typeParent).
Token
;
2326
constraints[i] = m_module.GetTypeTokenInternal(m_typeInterfaces[i]).
Token
;
2329
int declMember = m_declMeth == null ? m_DeclaringType.m_tdType.
Token
: m_declMeth.GetToken().Token;
2348
if (((m_tdType.
Token
& 0x00FFFFFF) != 0) && ((tkParent & 0x00FFFFFF) != 0))
2349
SetParentType(m_module.GetNativeHandle(), m_tdType.
Token
, tkParent);
2451
TermCreateClass(m_module.GetNativeHandle(), m_tdType.
Token
, JitHelpers.GetObjectHandleOnStack(ref cls));
2529
AddInterfaceImpl(m_module.GetNativeHandle(), m_tdType.
Token
, tkInterface.
Token
);
2574
AddDeclarativeSecurity(m_module.GetNativeHandle(), m_tdType.
Token
, action, blob, length);
2605
TypeBuilder.DefineCustomAttribute(m_module, m_tdType.
Token
, ((ModuleBuilder)m_module).GetConstructorToken(con).Token,
2616
customBuilder.CreateCustomAttribute((ModuleBuilder)m_module, m_tdType.
Token
);