32 instantiations of DynamicMethod
Aspire.StackExchange.Redis (1)
dotnet-svcutil-lib (2)
Microsoft.AspNetCore.Routing (1)
Microsoft.Extensions.AI.Tests (1)
Microsoft.Extensions.DependencyInjection (1)
Microsoft.ML.Data (4)
Utils\ApiUtils.cs (4)
93var mb = new DynamicMethod("Peek", null, args, typeof(TOwn), true);
113var mb = new DynamicMethod("Peek", null, args, typeof(TOwn), true);
159var mb = new DynamicMethod("Poke", null, args, typeof(TOwn), true);
177var mb = new DynamicMethod("Poke", null, args, typeof(TOwn), true);
Microsoft.ML.Transforms (1)
Microsoft.VisualBasic.Core (1)
System.Linq.Expressions (2)
System.Private.DataContractSerialization (3)
System.Private.Xml (1)
System.Text.Json (11)
System.Text.RegularExpressions (1)
System.Xaml (2)
80 references to DynamicMethod
Aspire.StackExchange.Redis (1)
dotnet-svcutil-lib (3)
Microsoft.AspNetCore.Routing (1)
Microsoft.Extensions.AI.Tests (1)
Microsoft.Extensions.DependencyInjection (2)
Microsoft.ML.Data (4)
Utils\ApiUtils.cs (4)
93var mb = new DynamicMethod("Peek", null, args, typeof(TOwn), true);
113var mb = new DynamicMethod("Peek", null, args, typeof(TOwn), true);
159var mb = new DynamicMethod("Poke", null, args, typeof(TOwn), true);
177var mb = new DynamicMethod("Poke", null, args, typeof(TOwn), true);
Microsoft.ML.Transforms (1)
mscorlib (1)
netstandard (1)
System.Linq.Expressions (10)
System.Private.CoreLib (2)
System.Private.DataContractSerialization (4)
System.Private.Xml (5)
System.Reflection.Emit.Lightweight (1)
System.Text.Json (29)
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (29)
36var dynamicMethod = new DynamicMethod(
74private static DynamicMethod CreateParameterizedConstructor(ConstructorInfo constructor)
85var dynamicMethod = new DynamicMethod(
184private static DynamicMethod CreateSingleParameterConstructor(ConstructorInfo constructor)
198var dynamicMethod = new DynamicMethod(
244private static DynamicMethod? CreateParameterizedConstructor(ConstructorInfo constructor, Type parameterType1, Type parameterType2, Type parameterType3, Type parameterType4)
255var dynamicMethod = new DynamicMethod(
338private static DynamicMethod CreateAddMethodDelegate(
344var dynamicMethod = new DynamicMethod(
365private static DynamicMethod CreateImmutableEnumerableCreateRangeDelegate(Type collectionType, Type elementType, Type enumerableType)
369var dynamicMethod = new DynamicMethod(
389private static DynamicMethod CreateImmutableDictionaryCreateRangeDelegate(Type collectionType, Type keyType, Type valueType, Type enumerableType)
393var dynamicMethod = new DynamicMethod(
415private static DynamicMethod CreatePropertyGetter(PropertyInfo propertyInfo, Type runtimePropertyType)
425DynamicMethod dynamicMethod = CreateGetterMethod(propertyInfo.Name, runtimePropertyType);
458private static DynamicMethod CreatePropertyGetter(PropertyInfo propertyInfo, Type declaringType, Type runtimePropertyType)
469DynamicMethod dynamicMethod = CreateGetterMethod(propertyInfo.Name, declaringType, runtimePropertyType);
512private static DynamicMethod CreatePropertySetter(PropertyInfo propertyInfo, Type runtimePropertyType)
522DynamicMethod dynamicMethod = CreateSetterMethod(propertyInfo.Name, runtimePropertyType);
550private static DynamicMethod CreateFieldGetter(FieldInfo fieldInfo, Type runtimeFieldType)
557DynamicMethod dynamicMethod = CreateGetterMethod(fieldInfo.Name, runtimeFieldType);
584private static DynamicMethod CreateFieldSetter(FieldInfo fieldInfo, Type runtimeFieldType)
591DynamicMethod dynamicMethod = CreateSetterMethod(fieldInfo.Name, runtimeFieldType);
615private static DynamicMethod CreateUnionTryGetValueAccessor(Type unionType, IReadOnlyList<KeyValuePair<Type, MethodInfo>> entries)
625DynamicMethod dynamicMethod = new DynamicMethod(
696private static DynamicMethod CreateGetterMethod(string memberName, Type memberType) =>
704private static DynamicMethod CreateGetterMethod(string memberName, Type declaringType, Type memberType) =>
712private static DynamicMethod CreateSetterMethod(string memberName, Type memberType) =>
721private static T? CreateDelegate<T>(DynamicMethod? method) where T : Delegate =>
System.Text.RegularExpressions (7)
System\Text\RegularExpressions\RegexLWCGCompiler.cs (5)
57DynamicMethod tryFindNextPossibleStartPositionMethod = DefineDynamicMethod($"Regex{regexNum}_TryFindNextPossibleStartingPosition{description}", typeof(bool), typeof(CompiledRegexRunner), s_paramTypes);
60DynamicMethod tryMatchAtCurrentPositionMethod = DefineDynamicMethod($"Regex{regexNum}_TryMatchAtCurrentPosition{description}", typeof(bool), typeof(CompiledRegexRunner), s_paramTypes);
63DynamicMethod scanMethod = DefineDynamicMethod($"Regex{regexNum}_Scan{description}", null, typeof(CompiledRegexRunner), [typeof(RegexRunner), typeof(ReadOnlySpan<char>)]);
70private DynamicMethod DefineDynamicMethod(string methname, Type? returntype, Type hostType, Type[] paramTypes)
79var dm = new DynamicMethod(methname, Attribs, Conventions, returntype, paramTypes, hostType, skipVisibility: false);
System.Xaml (7)