25 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.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\PropertyValue.cs (1)
214property.GetMethod!.CreateDelegate<Func<TContainer, TProperty>>();
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.Text.RegularExpressions (1)
System\Text\RegularExpressions\CompiledRegexRunnerFactory.cs (1)
21_scan ??= _scanMethod.CreateDelegate<CompiledRegexRunner.ScanDelegate>(), _searchValues, _culture);