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