7 instantiations of SignatureHelper
System.Private.CoreLib (7)
src\System\Reflection\Emit\SignatureHelper.cs (7)
31
SignatureHelper sigHelp = new
SignatureHelper
(scope, MdSigCallingConvention.GenericInst);
70
sigHelp = new
SignatureHelper
(scope, intCall, cGenericParam, returnType,
104
return new
SignatureHelper
(mod, intCall, returnType, null, null);
124
return new
SignatureHelper
(mod, MdSigCallingConvention.LocalSig);
129
return new
SignatureHelper
(mod, MdSigCallingConvention.Field);
157
sigHelp = new
SignatureHelper
(mod, intCall,
169
return new
SignatureHelper
(module, type);
87 references to SignatureHelper
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
450
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.Emit.
SignatureHelper
))]
netstandard (1)
netstandard.cs (1)
1418
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.Emit.
SignatureHelper
))]
System.Private.CoreLib (81)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (1)
49
public abstract void Emit(OpCode opcode,
SignatureHelper
signature);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ModuleBuilder.cs (1)
191
public abstract int GetSignatureMetadataToken(
SignatureHelper
signature);
src\System\Reflection\Emit\DynamicILGenerator.cs (17)
183
SignatureHelper
sig = GetMethodSigHelper(callingConvention,
220
SignatureHelper
sig = GetMethodSigHelper(unmanagedCallConv, returnType, parameterTypes);
279
public override void Emit(OpCode opcode,
SignatureHelper
signature)
426
SignatureHelper
sig = GetMethodSigHelper(methodInfo.CallingConvention,
439
private
SignatureHelper
GetMethodSigHelper(
444
SignatureHelper
sigHelp =
SignatureHelper
.GetMethodSigHelper(null, unmanagedCallConv, returnType);
449
private
SignatureHelper
GetMethodSigHelper(
457
SignatureHelper
sig =
SignatureHelper
.GetMethodSigHelper(call, returnType);
467
private void AddParameters(
SignatureHelper
sigHelp, Type[]? parameterTypes, Type[][]? requiredCustomModifiers, Type[][]? optionalCustomModifiers)
530
private int GetTokenForVarArgMethod(RuntimeMethodInfo rtMeth,
SignatureHelper
sig)
536
private int GetTokenForVarArgMethod(DynamicMethod dm,
SignatureHelper
sig)
868
internal byte[] LocalSignature => m_localSignature ??=
SignatureHelper
.GetLocalVarSigHelper().InternalGetSignatureArray();
1092
internal
SignatureHelper
m_signature;
1094
internal VarArgMethod(DynamicMethod dm,
SignatureHelper
signature)
1100
internal VarArgMethod(RuntimeMethodInfo method,
SignatureHelper
signature)
src\System\Reflection\Emit\DynamicMethod.CoreCLR.cs (2)
150
byte[] methodSignature =
SignatureHelper
.GetMethodSigHelper(
161
byte[] methodSignature =
SignatureHelper
.GetMethodSigHelper(
src\System\Reflection\Emit\RuntimeConstructorBuilder.cs (1)
48
internal
SignatureHelper
GetMethodSignature()
src\System\Reflection\Emit\RuntimeFieldBuilder.cs (2)
34
SignatureHelper
sigHelp =
SignatureHelper
.GetFieldSigHelper(m_typeBuilder.Module);
src\System\Reflection\Emit\RuntimeILGenerator.cs (7)
62
internal
SignatureHelper
m_localSignature;
98
m_localSignature =
SignatureHelper
.GetLocalVarSigHelper(mb?.GetTypeBuilder().Module);
174
internal
SignatureHelper
GetMemberRefSignature(
528
SignatureHelper
sig = GetMemberRefSignature(callingConvention,
568
SignatureHelper
sig =
SignatureHelper
.GetMethodSigHelper(
633
public override void Emit(OpCode opcode,
SignatureHelper
signature)
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (5)
44
private
SignatureHelper
? m_signature;
276
internal
SignatureHelper
GetMethodSignature()
280
m_signature =
SignatureHelper
.GetMethodSigHelper(m_module, m_callingConvention, m_inst != null ? m_inst.Length : 0,
305
return
SignatureHelper
.GetLocalVarSigHelper(m_module).InternalGetSignature(out signatureLength);
377
SignatureHelper
thatSig = rmBuilder.GetMethodSignature();
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (23)
276
SignatureHelper
sigHelp =
SignatureHelper
.GetMethodSigHelper(this, constructor.CallingConvention, null, null, null, parameterTypes, requiredCustomModifiers, optionalCustomModifiers);
308
SignatureHelper
sigHelp;
352
byte[] sig =
SignatureHelper
.GetTypeSigToken(this, method.DeclaringType).InternalGetSignature(out int length);
372
internal
SignatureHelper
GetMemberRefSignature(CallingConventions call, Type? returnType,
376
SignatureHelper
sig =
SignatureHelper
.GetMethodSigHelper(this, call, cGenericParameters, returnType, null, null, parameterTypes, requiredCustomModifiers, optionalCustomModifiers);
437
internal
SignatureHelper
GetMemberRefSignature(MethodBase? method, int cGenericParameters)
472
SignatureHelper
sigHelp =
SignatureHelper
.GetMethodSigHelper(this, method.CallingConvention, cGenericParameters, returnParameter?.ParameterType, returnParameter?.GetRequiredCustomModifiers(), returnParameter?.GetOptionalCustomModifiers(), parameterTypes, requiredCustomModifiers, optionalCustomModifiers);
914
byte[] sig =
SignatureHelper
.GetTypeSigToken(this, type).InternalGetSignature(out int length);
1034
SignatureHelper
sigHelp;
1038
sigHelp =
SignatureHelper
.GetMethodSigHelper(
1046
sigHelp =
SignatureHelper
.GetMethodSigHelper(this, method.ReturnType, parameterTypes);
1094
byte[] sigBytes =
SignatureHelper
.GetMethodSpecSigHelper(
1141
SignatureHelper
sigHelp =
SignatureHelper
.GetMethodSigHelper(
1183
byte[] sig =
SignatureHelper
.GetTypeSigToken(this, field.DeclaringType).InternalGetSignature(out int length);
1214
byte[] sig =
SignatureHelper
.GetTypeSigToken(this, field.DeclaringType).InternalGetSignature(out int length);
1227
byte[] sig =
SignatureHelper
.GetTypeSigToken(this, field.DeclaringType!).InternalGetSignature(out int length);
1236
SignatureHelper
sigHelp =
SignatureHelper
.GetFieldSigHelper(this);
1257
public override int GetSignatureMetadataToken(
SignatureHelper
signature)
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (2)
1396
SignatureHelper
sigHelper;
1402
sigHelper =
SignatureHelper
.GetPropertySigHelper(
src\System\Reflection\Emit\SignatureHelper.cs (19)
19
public static
SignatureHelper
GetMethodSigHelper(Module? mod, Type? returnType, Type[]? parameterTypes)
24
public static
SignatureHelper
GetMethodSigHelper(Module? mod, CallingConventions callingConvention, Type? returnType)
29
internal static
SignatureHelper
GetMethodSpecSigHelper(Module? scope, Type[] inst)
31
SignatureHelper
sigHelp = new SignatureHelper(scope, MdSigCallingConvention.GenericInst);
38
internal static
SignatureHelper
GetMethodSigHelper(
47
internal static
SignatureHelper
GetMethodSigHelper(
52
SignatureHelper
sigHelp;
77
internal static
SignatureHelper
GetMethodSigHelper(Module? mod, CallingConvention unmanagedCallConv, Type? returnType)
107
public static
SignatureHelper
GetLocalVarSigHelper()
112
public static
SignatureHelper
GetMethodSigHelper(CallingConventions callingConvention, Type? returnType)
117
internal static
SignatureHelper
GetMethodSigHelper(CallingConvention unmanagedCallingConvention, Type? returnType)
122
public static
SignatureHelper
GetLocalVarSigHelper(Module? mod)
127
public static
SignatureHelper
GetFieldSigHelper(Module? mod)
132
public static
SignatureHelper
GetPropertySigHelper(Module? mod, Type? returnType, Type[]? parameterTypes)
137
public static
SignatureHelper
GetPropertySigHelper(Module? mod,
144
public static
SignatureHelper
GetPropertySigHelper(Module? mod, CallingConventions callingConvention,
148
SignatureHelper
sigHelp;
164
internal static
SignatureHelper
GetTypeSigToken(Module module, Type type)
840
obj is
SignatureHelper
other &&
src\System\Reflection\Emit\SymbolMethod.cs (1)
51
SignatureHelper
.GetMethodSigHelper(
System.Reflection.Emit (3)
System\Reflection\Emit\ILGeneratorImpl.cs (2)
570
public override void Emit(OpCode opcode,
SignatureHelper
signature)
581
PropertyInfo argCountProperty = typeof(
SignatureHelper
).GetProperty("ArgumentCount", BindingFlags.NonPublic | BindingFlags.Instance)!;
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
1360
public override int GetSignatureMetadataToken(
SignatureHelper
signature) =>
System.Reflection.Emit.ILGeneration (1)
artifacts\obj\System.Reflection.Emit.ILGeneration\Debug\net10.0\System.Reflection.Emit.ILGeneration.Forwards.cs (1)
8
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.Emit.
SignatureHelper
))]