Base:
method
CreateDelegate
System.Reflection.MethodInfo.CreateDelegate(System.Type)
23 references to CreateDelegate
System (3)
regex\system\text\regularexpressions\compiledregexrunnerfactory.cs (3)
32
runner.SetDelegates((NoParamDelegate) goMethod.
CreateDelegate
(typeof(NoParamDelegate)),
33
(FindFirstCharDelegate) findFirstCharMethod.
CreateDelegate
(typeof(FindFirstCharDelegate)),
34
(NoParamDelegate) initTrackCountMethod.
CreateDelegate
(typeof(NoParamDelegate)));
System.AddIn (1)
System\Addin\Hosting\AddInActivator.cs (1)
455
return (InvokerDelegate)invoker.
CreateDelegate
(typeof(InvokerDelegate));
System.Configuration (2)
System\Configuration\TypeUtil.cs (2)
140
var createInstanceDel = (Func<Type, object>)dm.
CreateDelegate
(typeof(Func<Type, object>));
169
var createDelegateDel = (Func<Type, MethodInfo, Delegate>)dm.
CreateDelegate
(typeof(Func<Type, MethodInfo, Delegate>));
System.Data.Entity (4)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (4)
140
return (Action<object, object>)method.
CreateDelegate
(typeof(Action<object, object>));
177
return method.
CreateDelegate
(typeof(Func<object>));
261
return (Func<object, object>)method.
CreateDelegate
(typeof(Func<object, object>));
391
return (Action<object, object>)method.
CreateDelegate
(typeof(Action<object, object>));
System.Data.Linq (4)
Mapping\Accessors.cs (3)
39
dget = mget.
CreateDelegate
(typeof(DGet<,>).MakeGenericType(objectType, fi.FieldType));
55
drset = mset.
CreateDelegate
(typeof(DRSet<,>).MakeGenericType(objectType, fi.FieldType));
120
drset = mset.
CreateDelegate
(typeof(DRSet<,>).MakeGenericType(objectType, pi.PropertyType));
SqlClient\Reader\ObjectReaderCompiler.cs (1)
206
var fnMaterialize = (Delegate)dm.
CreateDelegate
(fnMatType);
System.Data.Services (3)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
2365
container.ReadFromContextDelegate = (Func<object, IQueryable>)readerMethod.
CreateDelegate
(typeof(Func<object, IQueryable>));
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
325
resourceContainer.ReadFromContextDelegate = (Func<object, IQueryable>)readerMethod.
CreateDelegate
(typeof(Func<object, IQueryable>));
System\Data\Services\WebUtil.cs (1)
598
return method.
CreateDelegate
(typeof(Func<>).MakeGenericType(targetType));
System.Data.SqlXml (1)
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
331
return ((DynamicMethod) this.methods[name]).
CreateDelegate
(typDelegate);
System.Runtime.Serialization (1)
System\Runtime\Serialization\CodeGenerator.cs (1)
254
retVal = dynamicMethod.
CreateDelegate
(delegateType);
System.ServiceModel (1)
System\ServiceModel\Dispatcher\CodeGenerator.cs (1)
172
retVal = dynamicMethod.
CreateDelegate
(delegateType);
System.Web (2)
Util\FastDelegateCreator.cs (1)
54
return (Func<object, IntPtr, TDelegate>)dynamicMethod.
CreateDelegate
(typeof(Func<object, IntPtr, TDelegate>));
Util\ReflectionUtil.cs (1)
53
return (Action<T>)dynamicMethod.
CreateDelegate
(typeof(Action<T>));
System.Xml (1)
System\Xml\Xslt\XslCompiledTransform.cs (1)
324
Delegate delExec = (dm != null) ? dm.
CreateDelegate
(typeof(ExecuteDelegate)) : Delegate.CreateDelegate(typeof(ExecuteDelegate), executeMethod);