21 instantiations of DynamicMethod
System (1)
regex\system\text\regularexpressions\RegexCompiler.cs (1)
3452
DynamicMethod dm = new
DynamicMethod
(methname, attribs, conventions, returntype, _paramTypes, hostType, false /*skipVisibility*/);
System.AddIn (1)
System\Addin\Hosting\AddInActivator.cs (1)
469
DynamicMethod invoker = new
DynamicMethod
(targetType.Name + "_ConstructorInvoker", // name, only usefult for debugging
System.Configuration (2)
System\Configuration\TypeUtil.cs (2)
180
return new
DynamicMethod
("temp-dynamic-method", returnType, parameterTypes);
190
return new
DynamicMethod
("temp-dynamic-method", returnType, parameterTypes, owner);
System.Core (1)
Microsoft\Scripting\Compiler\LambdaCompiler.cs (1)
93
var method = new
DynamicMethod
(lambda.Name ?? "lambda_method", lambda.ReturnType, parameterTypes, true);
System.Data.Entity (1)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (1)
594
return new
DynamicMethod
(name, returnType, parameterTypes, true);
System.Data.Linq (4)
Mapping\Accessors.cs (3)
29
DynamicMethod mget = new
DynamicMethod
(
41
DynamicMethod mset = new
DynamicMethod
(
106
DynamicMethod mset = new
DynamicMethod
(
SqlClient\Reader\ObjectReaderCompiler.cs (1)
281
DynamicMethod dm = new
DynamicMethod
(
System.Data.Services (4)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
2356
System.Reflection.Emit.DynamicMethod readerMethod = new System.Reflection.Emit.
DynamicMethod
("queryable_reader", typeof(IQueryable), parameterTypes, false);
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
319
System.Reflection.Emit.DynamicMethod readerMethod = new System.Reflection.Emit.
DynamicMethod
("queryable_reader", typeof(IQueryable), parameterTypes, false);
System\Data\Services\Serializers\SyndicationSerializer.cs (1)
785
DynamicMethod method = new
DynamicMethod
("content_populator", typeof(void), parameterTypes, module, false /* skipVisibility */);
System\Data\Services\WebUtil.cs (1)
589
System.Reflection.Emit.DynamicMethod method = new System.Reflection.Emit.
DynamicMethod
("invoke_constructor", targetType, Type.EmptyTypes, false);
System.Data.SqlXml (1)
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
209
DynamicMethod methDyn = new
DynamicMethod
(name, returnType, paramTypes, LREModule);
System.Runtime.Serialization (3)
System\Runtime\Serialization\CodeGenerator.cs (1)
220
this.dynamicMethod = new
DynamicMethod
(methodName, returnType, argTypes, SerializationModule, allowPrivateMemberAccess);
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
232
DynamicMethod dynamicMethod = new
DynamicMethod
(methodName, signature.ReturnType, paramTypes, typeof(JsonFormatReaderGenerator).Module, allowPrivateMemberAccess);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
160
DynamicMethod dynamicMethod = new
DynamicMethod
(methodName, signature.ReturnType, paramTypes, typeof(JsonFormatWriterGenerator).Module, allowPrivateMemberAccess);
System.ServiceModel (1)
System\ServiceModel\Dispatcher\CodeGenerator.cs (1)
139
this.dynamicMethod = new
DynamicMethod
(methodName, returnType, argTypes, SerializationModule, allowPrivateMemberAccess);
System.Web (2)
Util\FastDelegateCreator.cs (1)
40
DynamicMethod dynamicMethod = new
DynamicMethod
(
Util\ReflectionUtil.cs (1)
59
return new
DynamicMethod
(
93 references to DynamicMethod
mscorlib (28)
system\exception.cs (1)
470
if (methBase is System.Reflection.Emit.
DynamicMethod
.RTDynamicMethod)
system\reflection\emit\dynamicilgenerator.cs (22)
32
internal unsafe DynamicILGenerator(
DynamicMethod
method, byte[] methodSignature, int size)
42
internal void GetCallableMethod(RuntimeModule module,
DynamicMethod
dm)
56
return ((
DynamicMethod
)m_methodBuilder).ProfileAPICheck;
101
DynamicMethod
dynMeth = meth as
DynamicMethod
;
496
DynamicMethod
dm = methodInfo as
DynamicMethod
;
650
private int GetTokenFor(
DynamicMethod
dm)
665
private int GetTokenForVarArgMethod(
DynamicMethod
dm, SignatureHelper sig)
689
private
DynamicMethod
m_method;
705
m_method = (
DynamicMethod
)ilGenerator.m_methodBuilder;
743
DynamicMethod
method = m_method;
957
DynamicMethod
dm = handle as
DynamicMethod
;
1015
private
DynamicMethod
m_method;
1025
internal DynamicILInfo(DynamicScope scope,
DynamicMethod
method, byte[] methodSignature)
1038
internal void GetCallableMethod(RuntimeModule module,
DynamicMethod
dm)
1060
public
DynamicMethod
DynamicMethod { get { return m_method; } }
1146
public int GetTokenFor(
DynamicMethod
method)
1255
public int GetTokenFor(
DynamicMethod
method)
1315
internal
DynamicMethod
m_dynamicMethod;
1318
internal VarArgMethod(
DynamicMethod
dm, SignatureHelper signature)
system\reflection\emit\dynamicmethod.cs (3)
355
DynamicMethod
.CheckConsistency(attributes, callingConvention);
855
internal
DynamicMethod
m_owner;
866
internal RTDynamicMethod(
DynamicMethod
owner, String name, MethodAttributes attributes, CallingConventions callingConvention) {
system\reflection\emit\ilgenerator.cs (1)
125
Contract.Requires(methodBuilder is MethodBuilder || methodBuilder is
DynamicMethod
);
system\runtimehandles.cs (1)
1897
internal static extern IRuntimeMethodInfo GetDynamicMethod(
DynamicMethod
method, RuntimeModule module, string name, byte[] sig, Resolver resolver);
System (11)
regex\system\text\regularexpressions\compiledregexrunnerfactory.cs (6)
17
DynamicMethod
goMethod;
18
DynamicMethod
findFirstCharMethod;
19
DynamicMethod
initTrackCountMethod;
21
internal CompiledRegexRunnerFactory (
DynamicMethod
go,
DynamicMethod
firstChar,
DynamicMethod
trackCount) {
regex\system\text\regularexpressions\RegexCompiler.cs (5)
3429
DynamicMethod
goMethod = DefineDynamicMethod("Go" + regexnumString, null, typeof(CompiledRegexRunner));
3432
DynamicMethod
firstCharMethod = DefineDynamicMethod("FindFirstChar" + regexnumString, typeof(bool), typeof(CompiledRegexRunner));
3435
DynamicMethod
trackCountMethod = DefineDynamicMethod("InitTrackCount" + regexnumString, null, typeof(CompiledRegexRunner));
3444
internal
DynamicMethod
DefineDynamicMethod(String methname, Type returntype, Type hostType) {
3452
DynamicMethod
dm = new DynamicMethod(methname, attribs, conventions, returntype, _paramTypes, hostType, false /*skipVisibility*/);
System.AddIn (3)
System\Addin\Hosting\AddInActivator.cs (3)
453
DynamicMethod
invoker = AssertAndCreateInvoker(targetType, argType, methodArgs, havCtor);
464
private static
DynamicMethod
AssertAndCreateInvoker(Type targetType, Type argType, Type[] methodArgs, ConstructorInfo havCtor)
469
DynamicMethod
invoker = new DynamicMethod(targetType.Name + "_ConstructorInvoker", // name, only usefult for debugging
System.Configuration (4)
System\Configuration\TypeUtil.cs (4)
131
DynamicMethod
dm = CreateDynamicMethod(callingType, returnType: typeof(object), parameterTypes: new Type[] { typeof(Type) });
160
DynamicMethod
dm = CreateDynamicMethod(callingType, returnType: typeof(Delegate), parameterTypes: new Type[] { typeof(Type), typeof(MethodInfo) });
174
private static
DynamicMethod
CreateDynamicMethod(Type owner, Type returnType, Type[] parameterTypes) {
188
private static
DynamicMethod
CreateDynamicMethodWithUnrestrictedPermission(Type owner, Type returnType, Type[] parameterTypes) {
System.Core (12)
Microsoft\Scripting\Compiler\ILGen.cs (1)
534
if (mb is
DynamicMethod
) {
Microsoft\Scripting\Compiler\LambdaCompiler.cs (4)
93
var
method = new DynamicMethod(lambda.Name ?? "lambda_method", lambda.ReturnType, parameterTypes, true);
189
get { return _method is
DynamicMethod
; }
298
Debug.Assert(_method is
DynamicMethod
);
316
if (_method is
DynamicMethod
) {
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (1)
481
if (!(_method is
DynamicMethod
)) {
Microsoft\Scripting\Compiler\LambdaCompiler.Lambda.cs (4)
40
if (_method is
DynamicMethod
) {
90
DynamicMethod
dynamicMethod = inner._method as
DynamicMethod
;
124
if (_method is
DynamicMethod
) {
Microsoft\Scripting\Utils\TypeExtensions.cs (2)
32
var
dm = methodInfo as
DynamicMethod
;
System.Data.Entity (11)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (5)
129
DynamicMethod
method = CreateDynamicMethod(mi.Name, typeof(void), new Type[] { typeof(object), typeof(object) });
171
DynamicMethod
method = CreateDynamicMethod(ci.DeclaringType.Name, typeof(object), Type.EmptyTypes);
221
DynamicMethod
method = CreateDynamicMethod(mi.Name, typeof(object), new Type[] { typeof(object) });
315
DynamicMethod
method = CreateDynamicMethod(mi.Name, typeof(void), new Type[] { typeof(object), typeof(object) });
590
internal static
DynamicMethod
CreateDynamicMethod(string name, Type returnType, Type[] parameterTypes)
System\Data\Objects\Internal\EntityProxyFactory.cs (3)
636
public
DynamicMethod
CreateInitalizeCollectionMethod(Type proxyType)
1156
public
DynamicMethod
CreateInitalizeCollectionMethod(Type proxyType)
1160
DynamicMethod
initializeEntityCollections = LightweightCodeGenerator.CreateDynamicMethod(proxyType.Name + "_InitializeEntityCollections", typeof(IEntityWrapper), new Type[] { typeof(IEntityWrapper) });
System\Data\Objects\Internal\EntityProxyTypeInfo.cs (3)
31
private readonly
DynamicMethod
_initializeCollections;
46
internal EntityProxyTypeInfo(Type proxyType, ClrEntityType ospaceEntityType,
DynamicMethod
initializeCollections, List<PropertyInfo> baseGetters, List<PropertyInfo> baseSetters)
146
internal
DynamicMethod
InitializeEntityCollections
System.Data.Linq (6)
Mapping\Accessors.cs (3)
29
DynamicMethod
mget = new DynamicMethod(
41
DynamicMethod
mset = new DynamicMethod(
106
DynamicMethod
mset = new DynamicMethod(
SqlClient\Reader\ObjectReaderCompiler.cs (3)
204
DynamicMethod
dm = this.CompileDynamicMethod(gen, expression, elementType);
279
private
DynamicMethod
CompileDynamicMethod(Generator gen, SqlExpression expression, Type elementType) {
281
DynamicMethod
dm = new DynamicMethod(
System.Data.Services (4)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
2356
System.Reflection.Emit.
DynamicMethod
readerMethod = new System.Reflection.Emit.DynamicMethod("queryable_reader", typeof(IQueryable), parameterTypes, false);
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
319
System.Reflection.Emit.
DynamicMethod
readerMethod = new System.Reflection.Emit.DynamicMethod("queryable_reader", typeof(IQueryable), parameterTypes, false);
System\Data\Services\Serializers\SyndicationSerializer.cs (1)
785
DynamicMethod
method = new DynamicMethod("content_populator", typeof(void), parameterTypes, module, false /* skipVisibility */);
System\Data\Services\WebUtil.cs (1)
589
System.Reflection.Emit.
DynamicMethod
method = new System.Reflection.Emit.DynamicMethod("invoke_constructor", targetType, Type.EmptyTypes, false);
System.Data.SqlXml (4)
System\Xml\Xsl\IlGen\XmlILModule.cs (4)
209
DynamicMethod
methDyn = new DynamicMethod(name, returnType, paramTypes, LREModule);
232
DynamicMethod
methDyn = methInfo as
DynamicMethod
;
331
return ((
DynamicMethod
) this.methods[name]).CreateDelegate(typDelegate);
System.Runtime.Serialization (4)
System\Runtime\Serialization\CodeGenerator.cs (2)
163
DynamicMethod
dynamicMethod;
190
internal void BeginMethod(
DynamicMethod
dynamicMethod, Type delegateType, string methodName, Type[] argTypes, bool allowPrivateMemberAccess)
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
232
DynamicMethod
dynamicMethod = new DynamicMethod(methodName, signature.ReturnType, paramTypes, typeof(JsonFormatReaderGenerator).Module, allowPrivateMemberAccess);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
160
DynamicMethod
dynamicMethod = new DynamicMethod(methodName, signature.ReturnType, paramTypes, typeof(JsonFormatWriterGenerator).Module, allowPrivateMemberAccess);
System.ServiceModel (1)
System\ServiceModel\Dispatcher\CodeGenerator.cs (1)
40
DynamicMethod
dynamicMethod;
System.Web (3)
Util\FastDelegateCreator.cs (1)
40
DynamicMethod
dynamicMethod = new DynamicMethod(
Util\ReflectionUtil.cs (2)
28
DynamicMethod
dynamicMethod = CreateDynamicMethodWithAssert();
57
private static
DynamicMethod
CreateDynamicMethodWithAssert() {
System.Xml (2)
System\Xml\Xslt\XslCompiledTransform.cs (2)
323
DynamicMethod
dm = executeMethod as
DynamicMethod
;