31 references to CreateDelegate
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
160?.CreateDelegate<Func<IEndpointRouteBuilder, IEndpointRouteBuilder>>();
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
160?.CreateDelegate<Func<IEndpointRouteBuilder, IEndpointRouteBuilder>>();
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ValidationIntegrationTests.cs (1)
2564public Delegate Delegate { get; set; } = typeof(ModelWithNonNullableReferenceTypeProperties).GetMethod(nameof(SomeMethod))!.CreateDelegate<Action>();
Microsoft.CodeAnalysis.Scripting (1)
ScriptBuilder.cs (1)
163return runtimeEntryPoint.CreateDelegate<Func<object[], Task<T>>>();
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (1)
265Func<MemberInfo, MemberInfo, bool> apiDelegate = apiMethod.CreateDelegate<Func<MemberInfo, MemberInfo, bool>>();
Microsoft.JSInterop (1)
Infrastructure\DotNetDispatcher.cs (1)
374taskConverterMethodInfo.MakeGenericMethod(t).CreateDelegate<Func<object, Task>>(), _taskConverterMethodInfo);
System.Data.Common (2)
System\Data\DataRowExtensions.cs (1)
167.CreateDelegate<Func<object, T>>();
System\Data\SQLTypes\SqlXml.cs (1)
122return CreateSqlReaderMethodInfo.CreateDelegate<Func<Stream, XmlReaderSettings, XmlParserContext?, XmlReader>>();
System.Linq.Expressions (2)
System\Dynamic\Utils\DelegateHelpers.cs (2)
35.CreateDelegate<Func<Type, Func<object?[], object?>, Delegate>>(); 52?.CreateDelegate<Func<IDisposable>>();
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\AppDomain.cs (2)
414s_getUnauthenticatedPrincipal = mi.CreateDelegate<Func<IPrincipal>>(); 426s_getWindowsPrincipal = mi.CreateDelegate<Func<IPrincipal>>();
src\libraries\System.Private.CoreLib\src\System\ComponentModel\DefaultValueAttribute.cs (1)
90s_convertFromInvariantString = mi == null ? new object() : mi.CreateDelegate<Func<Type, string, object>>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\PropertyValue.cs (1)
214property.GetMethod!.CreateDelegate<Func<TContainer, TProperty>>();
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
182return s_getAssemblyName = getAssemblyNameMethod.CreateDelegate<Func<string, AssemblyName>>();
System.Private.DataContractSerialization (9)
System\Runtime\Serialization\AccessorBuilder.cs (7)
36Func<object> make = s_make.MakeGenericMethod(type).CreateDelegate<Func<object>>(); 72var createGetterGeneric = s_createGetterInternal.MakeGenericMethod(declaringType, propertyType).CreateDelegate<Func<PropertyInfo, Getter>>(); 129var createSetterGeneric = s_createSetterInternal.MakeGenericMethod(propInfo.DeclaringType!, propInfo.PropertyType).CreateDelegate<Func<PropertyInfo, Setter>>(); 169var getMethod = propInfo.GetMethod!.CreateDelegate<StructGetDelegate<DeclaringType, PropertyType>>(); 179var getMethod = propInfo.GetMethod!.CreateDelegate<Func<DeclaringType, PropertyType>>(); 192var setMethod = propInfo.SetMethod!.CreateDelegate<StructSetDelegate<DeclaringType, PropertyType>>(); 203var setMethod = propInfo.SetMethod!.CreateDelegate<Action<DeclaringType, PropertyType>>();
System\Runtime\Serialization\ReflectionReader.cs (2)
555Func<object, object?> objectToKeyValuePairGetKey = MakeGenericMethod(s_objectToKeyValuePairGetKey, keyType, valueType).CreateDelegate<Func<object, object?>>(); 556Func<object, object?> objectToKeyValuePairGetValue = MakeGenericMethod(s_objectToKeyValuePairGetValue, keyType, valueType).CreateDelegate<Func<object, object?>>();
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\SerializationInfoExtensions.cs (1)
14.CreateDelegate<Action<SerializationInfo, string, object, Type>>();
System.Private.Xml (3)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
648var getSetMemberValueDelegateWithType = getSetMemberValueDelegateWithTypeMi.CreateDelegate<Func<MemberInfo, ReflectionXmlSerializationReaderHelper.SetMemberValueDelegate>>(); 2124setTypedDelegate = setMethod.CreateDelegate<Action<TObj, TParam>>();
System\Xml\Xslt\XslCompiledTransform.cs (1)
232: executeMethod.CreateDelegate<ExecuteDelegate>();
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\SerializationInfoExtensions.cs (1)
16.CreateDelegate<Action<SerializationInfo, string, object, Type>>();
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\ObjectManager.cs (1)
1629.CreateDelegate<Action<SerializationInfo, string, object, Type>>();
System.Security.Cryptography (1)
System\Security\Cryptography\XmlKeyHelper.cs (1)
278.CreateDelegate<Func<string, object>>();