252 references to GetMethod
Aspire.Hosting.RemoteHost (1)
Ats\AtsCallbackProxyFactory.cs (1)
134
var addMethod = jsonObjectType.
GetMethod
("Add", [typeof(string), typeof(JsonNode)]);
Aspire.Hosting.Tests (1)
ResourceNotificationTests.cs (1)
1714
var addMethod = type.
GetMethod
(nameof(ImmutableArray<int>.Add), [elementType])
Aspire.RabbitMQ.Client.Tests (1)
AspireRabbitMQLoggingTests.cs (1)
258
s_log.GetType().
GetMethod
("Error", [typeof(string), typeof(Exception)])!.Invoke(s_log, new object[] { message, ex });
dotnet-svcutil-lib (12)
FrameworkFork\Microsoft.Xml\External\Extensions.cs (1)
21
return type.
GetMethod
(name, types);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (1)
701
Call(typeof(Array).
GetMethod
("SetValue", new Type[] { typeof(object), typeof(int) }));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (1)
282
_checkShouldPersistMethodInfo = memberInfo.DeclaringType.
GetMethod
("ShouldSerialize" + memberInfo.Name, new Type[0]);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (4)
1281
MethodInfo enumerator = type.
GetMethod
("GetEnumerator", new Type[0]);
1321
MethodInfo addMethod = type.
GetMethod
("Add", new Type[] { currentType });
1326
addMethod = type.
GetMethod
("Add", new Type[] { currentType });
1383
MethodInfo addMethod = type.
GetMethod
("Add", new Type[] { indexer.PropertyType });
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
402
MethodInfo format = formatter.
GetMethod
("To" + pm.TypeDesc.FormatterName, new Type[] { typeof(string) });
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (1)
967
System.Reflection.MethodInfo format = formatter.
GetMethod
("ToString", new Type[] { pm.TypeDesc.Type });
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (3)
85
s_arraySetValue = typeof(Array).
GetMethod
("SetValue", new Type[] { typeof(object), typeof(int) });
102
s_objectToString = typeof(object).
GetMethod
("ToString", Array.Empty<Type>());
117
s_stringFormat = typeof(string).
GetMethod
("Format", new Type[] { typeof(string), typeof(object[]) });
GetDocument.Insider (2)
Commands\GetDocumentCommandWorker.cs (2)
233
var generateWithVersionMethod = serviceType.
GetMethod
(
445
var method = type.
GetMethod
(methodName, parameterTypes);
ILCompiler.Compiler (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
96
/// <item><see cref="System.Type.
GetMethod
(string, System.Type[])"/></item>
illink (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
96
/// <item><see cref="System.Type.
GetMethod
(string, System.Type[])"/></item>
ILLink.RoslynAnalyzer (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
96
/// <item><see cref="System.Type.
GetMethod
(string, System.Type[])"/></item>
Microsoft.Maui (1)
VisualDiagnostics\BootstrapHelper.cs (1)
35
MethodInfo loadFrom = typeof(Assembly).
GetMethod
("LoadFrom", new Type[] { typeof(string) });
Microsoft.Maui.Controls (1)
BindingExpression.cs (1)
409
MethodInfo setValueMethod = typeof(IElementController).
GetMethod
(nameof(IElementController.SetValueFromRenderer), new[] { typeof(BindableProperty), typeof(object) });
Microsoft.Maui.Controls.Compatibility (1)
src\Core\src\VisualDiagnostics\BootstrapHelper.cs (1)
35
MethodInfo loadFrom = typeof(Assembly).
GetMethod
("LoadFrom", new Type[] { typeof(string) });
Microsoft.ML.AutoML.SourceGenerator (5)
Template\EstimatorType.cs (1)
307
System.Reflection.MethodInfo method = t.
GetMethod
("ToString", new System.Type[] {
Template\SearchSpace.cs (1)
324
System.Reflection.MethodInfo method = t.
GetMethod
("ToString", new System.Type[] {
Template\SweepableEstimator_T_.cs (1)
331
System.Reflection.MethodInfo method = t.
GetMethod
("ToString", new System.Type[] {
Template\SweepableEstimator.cs (1)
326
System.Reflection.MethodInfo method = t.
GetMethod
("ToString", new System.Type[] {
Template\SweepableEstimatorFactory.cs (1)
302
System.Reflection.MethodInfo method = t.
GetMethod
("ToString", new System.Type[] {
Microsoft.ML.CodeGenerator (10)
Templates\Azure\Console\AzureModelBuilder.cs (1)
401
System.Reflection.MethodInfo method = t.
GetMethod
("ToString", new System.Type[] {
Templates\Azure\Model\AzureImageModelOutputClass.cs (1)
342
System.Reflection.MethodInfo method = t.
GetMethod
("ToString", new System.Type[] {
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (1)
342
System.Reflection.MethodInfo method = t.
GetMethod
("ToString", new System.Type[] {
Templates\Console\ConsumeModel.cs (1)
353
System.Reflection.MethodInfo method = t.
GetMethod
("ToString", new System.Type[] {
Templates\Console\ModelBuilder.cs (1)
718
System.Reflection.MethodInfo method = t.
GetMethod
("ToString", new System.Type[] {
Templates\Console\ModelInputClass.cs (1)
316
System.Reflection.MethodInfo method = t.
GetMethod
("ToString", new System.Type[] {
Templates\Console\ModelOutputClass.cs (1)
359
System.Reflection.MethodInfo method = t.
GetMethod
("ToString", new System.Type[] {
Templates\Console\ModelProject.cs (1)
348
System.Reflection.MethodInfo method = t.
GetMethod
("ToString", new System.Type[] {
Templates\Console\PredictProgram.cs (1)
375
System.Reflection.MethodInfo method = t.
GetMethod
("ToString", new System.Type[] {
Templates\Console\PredictProject.cs (1)
353
System.Reflection.MethodInfo method = t.
GetMethod
("ToString", new System.Type[] {
Microsoft.TestPlatform.CrossPlatEngine (1)
DataCollection\InProcDataCollector.cs (1)
138
return type?.
GetMethod
(funcName, argumentTypes);
Microsoft.TestPlatform.Utilities (1)
CodeCoverageDataAttachmentsHandler.cs (1)
188
s_mergeMethodInfo = classType.
GetMethod
(MergeMethodName, [typeof(string), typeof(IList<string>), mergeOperationEnum, typeof(bool), typeof(CancellationToken)])!;
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (1)
1389
il.Emit(OpCodes.Call, CallSiteType.
GetMethod
("Create", {CallSiteBinderType}))
Microsoft.VisualStudio.TestPlatform.Common (3)
ExtensionFramework\VSExtensionManager.cs (2)
88
var settingsManager = SettingsManagerType.
GetMethod
("CreateForApplication", [typeof(string)])?.Invoke(null, [installContext.GetVisualStudioPath(vsInstallPath)]);
102
installedExtensions = ExtensionManagerServiceType.
GetMethod
("GetEnabledExtensionContentLocations", [typeof(string)])?.Invoke(
Utilities\FakesUtilities.cs (1)
182
var method = type?.
GetMethod
(CrossPlatformConfiguratorMethodName, [typeof(IDictionary<string, FrameworkVersion>)]);
PresentationCore (5)
System\Windows\FontStretchConverter.cs (1)
93
MethodInfo mi = typeof(FontStretch).
GetMethod
("FromOpenTypeStretch", new Type[]{typeof(int)});
System\Windows\FontWeightConverter.cs (1)
93
MethodInfo mi = typeof(FontWeight).
GetMethod
("FromOpenTypeWeight", new Type[]{typeof(int)});
System\Windows\Media\Animation\KeyTimeConverter.cs (2)
145
mi = typeof(KeyTime).
GetMethod
("FromPercent", new Type[] { typeof(double) });
151
mi = typeof(KeyTime).
GetMethod
("FromTimeSpan", new Type[] { typeof(TimeSpan) });
System\Windows\Media\ColorConverter.cs (1)
103
MethodInfo mi = typeof(Color).
GetMethod
("FromArgb", new Type[]{typeof(byte), typeof(byte), typeof(byte), typeof(byte)});
PresentationFramework (2)
MS\Internal\Data\IndexedEnumerable.cs (1)
478
MethodInfo mi = srcType.
GetMethod
("IndexOf", new Type[] { typeof(object) });
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
896
typeof(IObjectReference).
GetMethod
("As", Type.EmptyTypes).MakeGenericMethod(helperType.FindVftblType())
PresentationFramework-SystemCore (2)
DynamicAccessorImpl.cs (2)
79
createMethod = callsiteType.
GetMethod
("Create", new Type[]{ typeof(CallSiteBinder) });
99
createMethod = callsiteType.
GetMethod
("Create", new Type[]{ typeof(CallSiteBinder) });
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\ConstraintServices.cs (1)
20
private static readonly MethodInfo _metadataEqualsMethod = typeof(object).
GetMethod
("Equals", new Type[] { typeof(object) })!;
System\ComponentModel\Composition\MetadataViewGenerator.cs (1)
75
private static readonly MethodInfo ObjectGetType = typeof(object).
GetMethod
("GetType", Type.EmptyTypes)!;
System.ComponentModel.TypeConverter (8)
System\ComponentModel\EnumConverter.cs (1)
154
MethodInfo? method = typeof(Enum).
GetMethod
("ToObject", new Type[] { typeof(Type), underlyingType });
System\ComponentModel\MemberDescriptor.cs (1)
408
result = componentClass.
GetMethod
(name, args);
System\ComponentModel\ReflectTypeDescriptionProvider.cs (2)
1277
MethodInfo? getMethod = providerType.
GetMethod
("Get" + provideAttr.PropertyName, new Type[] { receiverType });
1281
MethodInfo? setMethod = providerType.
GetMethod
("Set" + provideAttr.PropertyName, new Type[] { receiverType, getMethod.ReturnType });
System\ComponentModel\TimeSpanConverter.cs (1)
70
typeof(TimeSpan).
GetMethod
(nameof(TimeSpan.Parse), new Type[] { typeof(string) }),
System\Drawing\ColorConverter.cs (3)
111
member = typeof(Color).
GetMethod
("FromArgb", new Type[] { typeof(int), typeof(int), typeof(int), typeof(int) });
116
member = typeof(Color).
GetMethod
("FromName", new Type[] { typeof(string) });
121
member = typeof(Color).
GetMethod
("FromArgb", new Type[] { typeof(int), typeof(int), typeof(int) });
System.Data.Common (1)
System\Data\ColumnTypeConverter.cs (1)
96
MethodInfo method = typeof(Type).
GetMethod
("GetType", new Type[] { typeof(string) })!;
System.Linq.Expressions (26)
System\Dynamic\Utils\CachedReflectionInfo.cs (1)
14
s_String_Format_String_ObjectArray ??= typeof(string).
GetMethod
(nameof(string.Format), new Type[] { typeof(string), typeof(object[]) })!;
System\Linq\Expressions\Common\CachedReflectionInfo.cs (18)
24
public static MethodInfo MethodBase_GetMethodFromHandle_RuntimeMethodHandle => field ??= typeof(MethodBase).
GetMethod
(nameof(MethodBase.GetMethodFromHandle), new[] { typeof(RuntimeMethodHandle) })!;
25
public static MethodInfo MethodBase_GetMethodFromHandle_RuntimeMethodHandle_RuntimeTypeHandle => field ??= typeof(MethodBase).
GetMethod
(nameof(MethodBase.GetMethodFromHandle), new[] { typeof(RuntimeMethodHandle), typeof(RuntimeTypeHandle) })!;
26
public static MethodInfo MethodInfo_CreateDelegate_Type_Object => field ??= typeof(MethodInfo).
GetMethod
(nameof(MethodInfo.CreateDelegate), new[] { typeof(Type), typeof(object) })!;
27
public static MethodInfo String_op_Equality_String_String => field ??= typeof(string).
GetMethod
("op_Equality", new[] { typeof(string), typeof(string) })!;
28
public static MethodInfo String_Equals_String_String => field ??= typeof(string).
GetMethod
("Equals", new[] { typeof(string), typeof(string) })!;
29
public static MethodInfo DictionaryOfStringInt32_Add_String_Int32 => field ??= typeof(Dictionary<string, int>).
GetMethod
(nameof(Dictionary<string, int>.Add), new[] { typeof(string), typeof(int) })!;
33
public static MethodInfo Decimal_op_Implicit_Byte => field ??= typeof(decimal).
GetMethod
("op_Implicit", new[] { typeof(byte) })!;
34
public static MethodInfo Decimal_op_Implicit_SByte => field ??= typeof(decimal).
GetMethod
("op_Implicit", new[] { typeof(sbyte) })!;
35
public static MethodInfo Decimal_op_Implicit_Int16 => field ??= typeof(decimal).
GetMethod
("op_Implicit", new[] { typeof(short) })!;
36
public static MethodInfo Decimal_op_Implicit_UInt16 => field ??= typeof(decimal).
GetMethod
("op_Implicit", new[] { typeof(ushort) })!;
37
public static MethodInfo Decimal_op_Implicit_Int32 => field ??= typeof(decimal).
GetMethod
("op_Implicit", new[] { typeof(int) })!;
38
public static MethodInfo Decimal_op_Implicit_UInt32 => field ??= typeof(decimal).
GetMethod
("op_Implicit", new[] { typeof(uint) })!;
39
public static MethodInfo Decimal_op_Implicit_Int64 => field ??= typeof(decimal).
GetMethod
("op_Implicit", new[] { typeof(long) })!;
40
public static MethodInfo Decimal_op_Implicit_UInt64 => field ??= typeof(decimal).
GetMethod
("op_Implicit", new[] { typeof(ulong) })!;
41
public static MethodInfo Decimal_op_Implicit_Char => field ??= typeof(decimal).
GetMethod
("op_Implicit", new[] { typeof(char) })!;
42
public static MethodInfo Math_Pow_Double_Double => field ??= typeof(Math).
GetMethod
(nameof(Math.Pow), new[] { typeof(double), typeof(double) })!;
48
public static MethodInfo RuntimeOps_CreateRuntimeVariables_ObjectArray_Int64Array => field ??= typeof(RuntimeOps).
GetMethod
(nameof(RuntimeOps.CreateRuntimeVariables), new[] { typeof(object[]), typeof(long[]) })!;
49
public static MethodInfo RuntimeOps_CreateRuntimeVariables => field ??= typeof(RuntimeOps).
GetMethod
(nameof(RuntimeOps.CreateRuntimeVariables), Type.EmptyTypes)!;
System\Linq\Expressions\Compiler\ILGen.cs (1)
17
private static readonly MethodInfo s_nullableGetValueOrDefault = typeof(Nullable<>).
GetMethod
("GetValueOrDefault", Type.EmptyTypes)!;
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
783
MethodInfo toString = node.GetType().
GetMethod
("ToString", Type.EmptyTypes)!;
System\Linq\Expressions\Interpreter\CallInstruction.cs (3)
129
typeof(Array).
GetMethod
("GetValue", new[] { typeof(int) }) :
135
typeof(Array).
GetMethod
("GetValue", new[] { typeof(int), typeof(int) }) :
141
typeof(Array).
GetMethod
("GetValue", new[] { typeof(int), typeof(int), typeof(int) }) :
System\Linq\Expressions\LambdaExpression.cs (2)
24
private static readonly MethodInfo s_expressionCompileMethodInfo = typeof(Expression<>).
GetMethod
("Compile", Type.EmptyTypes)!;
127
return typeof(LambdaExpression).
GetMethod
("Compile", Type.EmptyTypes)!;
System.Net.NameResolution (9)
System\Net\DnsSocket.cs (9)
80
ConnectAsyncMethod = socketType.
GetMethod
("ConnectAsync", new[] { typeof(EndPoint), typeof(CancellationToken) })!,
81
SendAsyncMethod = socketType.
GetMethod
("SendAsync", new[] { typeof(ReadOnlyMemory<byte>), typeof(CancellationToken) })!,
82
ReceiveAsyncMethod = socketType.
GetMethod
("ReceiveAsync", new[] { typeof(Memory<byte>), typeof(CancellationToken) })!,
83
ConnectMethod = socketType.
GetMethod
("Connect", new[] { typeof(EndPoint) })!,
84
SendMethod = socketType.
GetMethod
("Send", new[] { typeof(ReadOnlySpan<byte>) })!,
85
ReceiveMethod = socketType.
GetMethod
("Receive", new[] { typeof(Span<byte>) })!,
86
BeginConnectMethod = socketType.
GetMethod
("BeginConnect", new[] { typeof(EndPoint), typeof(AsyncCallback), typeof(object) })!,
87
EndConnectMethod = socketType.
GetMethod
("EndConnect", new[] { typeof(IAsyncResult) })!,
88
DisposeMethod = socketType.
GetMethod
("Dispose", Type.EmptyTypes)!,
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (3)
121
MethodInfo mi = consoleType.
GetMethod
("WriteLine", s_parameterTypes)!;
141
MethodInfo mi = typeof(IO.TextWriter).
GetMethod
("WriteLine", [cls]) ??
173
MethodInfo mi = typeof(IO.TextWriter).
GetMethod
("WriteLine", [cls]) ??
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeReflectionExtensions.cs (1)
72
return type.
GetMethod
(name, parameters);
System.Private.DataContractSerialization (6)
System\Runtime\Serialization\CodeGenerator.cs (3)
52
s_arraySetValue = typeof(Array).
GetMethod
("SetValue", new Type[] { typeof(object), typeof(int) });
66
s_objectToString = typeof(object).
GetMethod
("ToString", Type.EmptyTypes);
80
s_stringFormat = typeof(string).
GetMethod
("Format", new Type[] { typeof(string), typeof(object[]) });
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
710
_ilg.Call(typeof(RuntimeTypeHandle).
GetMethod
("Equals", new Type[] { typeof(RuntimeTypeHandle) })!);
System\Runtime\Serialization\ReflectionClassWriter.cs (1)
75
MethodInfo getValue = memberType.
GetMethod
("get_Value", Type.EmptyTypes)!;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
722
_ilg.Call(typeof(RuntimeTypeHandle).
GetMethod
("Equals", new Type[] { typeof(RuntimeTypeHandle) })!);
System.Private.Xml (75)
System\Xml\Serialization\CodeGenerator.cs (1)
462
Call(typeof(Array).
GetMethod
("SetValue", new Type[] { typeof(object), typeof(int) })!);
System\Xml\Serialization\Models.cs (1)
300
_checkShouldPersistMethodInfo = memberInfo.DeclaringType!.
GetMethod
($"ShouldSerialize{memberInfo.Name}", Type.EmptyTypes);
System\Xml\Serialization\SourceInfo.cs (1)
28
return typeof(IList).
GetMethod
(
System\Xml\Serialization\Types.cs (4)
1337
MethodInfo? enumerator = type.
GetMethod
("GetEnumerator", Type.EmptyTypes);
1374
MethodInfo? addMethod = type.
GetMethod
("Add", new Type[] { currentType });
1379
addMethod = type.
GetMethod
("Add", new Type[] { currentType });
1436
MethodInfo? addMethod = type.
GetMethod
("Add", new Type[] { indexer.PropertyType });
System\Xml\Serialization\XmlSchemaExporter.cs (1)
920
System.Reflection.MethodInfo? format = formatter.
GetMethod
("ToString", new Type[] { pm.TypeDesc.Type! });
System\Xml\Serialization\XmlSerializationILGen.cs (1)
212
MethodInfo Hashtable_set_Item = typeof(Hashtable).
GetMethod
(
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
1513
getEnumeratorMethod = arrayTypeDesc.Type!.
GetMethod
(
2500
MethodInfo constructorInvoke = typeof(ConstructorInfo).
GetMethod
("Invoke", new Type[] { typeof(object[]) })!;
System\Xml\Xsl\IlGen\GenerateHelper.cs (59)
118
SeqReuse = sequenceType.
GetMethod
("CreateOrReuse", new[] { sequenceType })!;
119
SeqReuseSgl = sequenceType.
GetMethod
("CreateOrReuse", new[] { sequenceType, storageType })!;
270
public static readonly MethodInfo ChangeTypeXsltArg = typeof(XmlQueryRuntime).
GetMethod
("ChangeTypeXsltArgument", new[] { typeof(int), typeof(object), typeof(Type) })!;
288
public static readonly MethodInfo ItemMatchesCode = typeof(XmlQueryRuntime).
GetMethod
("MatchesXmlType", new[] { typeof(XPathItem), typeof(XmlTypeCode) })!;
289
public static readonly MethodInfo ItemMatchesType = typeof(XmlQueryRuntime).
GetMethod
("MatchesXmlType", new[] { typeof(XPathItem), typeof(int) })!;
290
public static readonly MethodInfo QNameEqualLit = typeof(XmlQueryRuntime).
GetMethod
("IsQNameEqual", new[] { typeof(XPathNavigator), typeof(int), typeof(int) })!;
291
public static readonly MethodInfo QNameEqualNav = typeof(XmlQueryRuntime).
GetMethod
("IsQNameEqual", new[] { typeof(XPathNavigator), typeof(XPathNavigator) })!;
294
public static readonly MethodInfo SeqMatchesCode = typeof(XmlQueryRuntime).
GetMethod
("MatchesXmlType", new[] { typeof(IList<XPathItem>), typeof(XmlTypeCode) })!;
295
public static readonly MethodInfo SeqMatchesType = typeof(XmlQueryRuntime).
GetMethod
("MatchesXmlType", new[] { typeof(IList<XPathItem>), typeof(int) })!;
299
public static readonly MethodInfo TagAndMappings = typeof(XmlQueryRuntime).
GetMethod
("ParseTagName", new[] { typeof(string), typeof(int) })!;
300
public static readonly MethodInfo TagAndNamespace = typeof(XmlQueryRuntime).
GetMethod
("ParseTagName", new[] { typeof(string), typeof(string) })!;
321
public static readonly MethodInfo ValueAsAny = typeof(XPathItem).
GetMethod
("ValueAs", new[] { typeof(Type), typeof(IXmlNamespaceResolver) })!;
326
public static readonly MethodInfo NavMoveAttr = typeof(XPathNavigator).
GetMethod
("MoveToAttribute", new[] { typeof(string), typeof(string) })!;
337
public static readonly MethodInfo StartElemLitName = typeof(XmlQueryOutput).
GetMethod
("WriteStartElement", new[] { typeof(string), typeof(string), typeof(string) })!;
338
public static readonly MethodInfo StartElemLocName = typeof(XmlQueryOutput).
GetMethod
("WriteStartElementLocalName", new[] { typeof(string) })!;
340
public static readonly MethodInfo StartAttrLitName = typeof(XmlQueryOutput).
GetMethod
("WriteStartAttribute", new[] { typeof(string), typeof(string), typeof(string) })!;
341
public static readonly MethodInfo StartAttrLocName = typeof(XmlQueryOutput).
GetMethod
("WriteStartAttributeLocalName", new[] { typeof(string) })!;
344
public static readonly MethodInfo NoEntText = typeof(XmlQueryOutput).
GetMethod
("WriteRaw", new[] { typeof(string) })!;
349
public static readonly MethodInfo StartElemLitNameUn = typeof(XmlQueryOutput).
GetMethod
("WriteStartElementUnchecked", new[] { typeof(string), typeof(string), typeof(string) })!;
350
public static readonly MethodInfo StartElemLocNameUn = typeof(XmlQueryOutput).
GetMethod
("WriteStartElementUnchecked", new[] { typeof(string) })!;
352
public static readonly MethodInfo EndElemLitNameUn = typeof(XmlQueryOutput).
GetMethod
("WriteEndElementUnchecked", new[] { typeof(string), typeof(string), typeof(string) })!;
353
public static readonly MethodInfo EndElemLocNameUn = typeof(XmlQueryOutput).
GetMethod
("WriteEndElementUnchecked", new[] { typeof(string) })!;
354
public static readonly MethodInfo StartAttrLitNameUn = typeof(XmlQueryOutput).
GetMethod
("WriteStartAttributeUnchecked", new[] { typeof(string), typeof(string), typeof(string) })!;
355
public static readonly MethodInfo StartAttrLocNameUn = typeof(XmlQueryOutput).
GetMethod
("WriteStartAttributeUnchecked", new[] { typeof(string) })!;
363
public static readonly MethodInfo StartElemCopyName = typeof(XmlQueryOutput).
GetMethod
("WriteStartElementComputed", new[] { typeof(XPathNavigator) })!;
364
public static readonly MethodInfo StartElemMapName = typeof(XmlQueryOutput).
GetMethod
("WriteStartElementComputed", new[] { typeof(string), typeof(int) })!;
365
public static readonly MethodInfo StartElemNmspName = typeof(XmlQueryOutput).
GetMethod
("WriteStartElementComputed", new[] { typeof(string), typeof(string) })!;
366
public static readonly MethodInfo StartElemQName = typeof(XmlQueryOutput).
GetMethod
("WriteStartElementComputed", new[] { typeof(XmlQualifiedName) })!;
367
public static readonly MethodInfo StartAttrCopyName = typeof(XmlQueryOutput).
GetMethod
("WriteStartAttributeComputed", new[] { typeof(XPathNavigator) })!;
368
public static readonly MethodInfo StartAttrMapName = typeof(XmlQueryOutput).
GetMethod
("WriteStartAttributeComputed", new[] { typeof(string), typeof(int) })!;
369
public static readonly MethodInfo StartAttrNmspName = typeof(XmlQueryOutput).
GetMethod
("WriteStartAttributeComputed", new[] { typeof(string), typeof(string) })!;
370
public static readonly MethodInfo StartAttrQName = typeof(XmlQueryOutput).
GetMethod
("WriteStartAttributeComputed", new[] { typeof(XmlQualifiedName) })!;
385
public static readonly MethodInfo DecCmp = typeof(decimal).
GetMethod
("Compare", new[] { typeof(decimal), typeof(decimal) })!;
386
public static readonly MethodInfo DecEq = typeof(decimal).
GetMethod
("Equals", new[] { typeof(decimal), typeof(decimal) })!;
393
public static readonly MethodInfo StrEq = typeof(string).
GetMethod
("Equals", new[] { typeof(string), typeof(string) })!;
394
public static readonly MethodInfo StrCat2 = typeof(string).
GetMethod
("Concat", new[] { typeof(string), typeof(string) })!;
395
public static readonly MethodInfo StrCat3 = typeof(string).
GetMethod
("Concat", new[] { typeof(string), typeof(string), typeof(string) })!;
396
public static readonly MethodInfo StrCat4 = typeof(string).
GetMethod
("Concat", new[] { typeof(string), typeof(string), typeof(string), typeof(string) })!;
397
public static readonly MethodInfo StrCmp = typeof(string).
GetMethod
("CompareOrdinal", new[] { typeof(string), typeof(string) })!;
401
public static readonly MethodInfo DblToDec = typeof(XsltConvert).
GetMethod
("ToDecimal", new[] { typeof(double) })!;
402
public static readonly MethodInfo DblToInt = typeof(XsltConvert).
GetMethod
("ToInt", new[] { typeof(double) })!;
403
public static readonly MethodInfo DblToLng = typeof(XsltConvert).
GetMethod
("ToLong", new[] { typeof(double) })!;
404
public static readonly MethodInfo DblToStr = typeof(XsltConvert).
GetMethod
("ToString", new[] { typeof(double) })!;
405
public static readonly MethodInfo DecToDbl = typeof(XsltConvert).
GetMethod
("ToDouble", new[] { typeof(decimal) })!;
406
public static readonly MethodInfo DTToStr = typeof(XsltConvert).
GetMethod
("ToString", new[] { typeof(DateTime) })!;
407
public static readonly MethodInfo IntToDbl = typeof(XsltConvert).
GetMethod
("ToDouble", new[] { typeof(int) })!;
408
public static readonly MethodInfo LngToDbl = typeof(XsltConvert).
GetMethod
("ToDouble", new[] { typeof(long) })!;
409
public static readonly MethodInfo StrToDbl = typeof(XsltConvert).
GetMethod
("ToDouble", new[] { typeof(string) })!;
410
public static readonly MethodInfo StrToDT = typeof(XsltConvert).
GetMethod
("ToDateTime", new[] { typeof(string) })!;
412
public static readonly MethodInfo ItemToBool = typeof(XsltConvert).
GetMethod
("ToBoolean", new[] { typeof(XPathItem) })!;
413
public static readonly MethodInfo ItemToDbl = typeof(XsltConvert).
GetMethod
("ToDouble", new[] { typeof(XPathItem) })!;
414
public static readonly MethodInfo ItemToStr = typeof(XsltConvert).
GetMethod
("ToString", new[] { typeof(XPathItem) })!;
415
public static readonly MethodInfo ItemToNode = typeof(XsltConvert).
GetMethod
("ToNode", new[] { typeof(XPathItem) })!;
416
public static readonly MethodInfo ItemToNodes = typeof(XsltConvert).
GetMethod
("ToNodeSet", new[] { typeof(XPathItem) })!;
418
public static readonly MethodInfo ItemsToBool = typeof(XsltConvert).
GetMethod
("ToBoolean", new[] { typeof(IList<XPathItem>) })!;
419
public static readonly MethodInfo ItemsToDbl = typeof(XsltConvert).
GetMethod
("ToDouble", new[] { typeof(IList<XPathItem>) })!;
420
public static readonly MethodInfo ItemsToNode = typeof(XsltConvert).
GetMethod
("ToNode", new[] { typeof(IList<XPathItem>) })!;
421
public static readonly MethodInfo ItemsToNodes = typeof(XsltConvert).
GetMethod
("ToNodeSet", new[] { typeof(IList<XPathItem>) })!;
422
public static readonly MethodInfo ItemsToStr = typeof(XsltConvert).
GetMethod
("ToString", new[] { typeof(IList<XPathItem>) })!;
System\Xml\Xsl\Runtime\XsltLibrary.cs (5)
23
public static readonly MethodInfo EnsureNodeSet = typeof(XsltConvert).
GetMethod
("EnsureNodeSet", new[] { typeof(IList<XPathItem>) })!;
34
public static readonly MethodInfo Substring2 = typeof(XsltFunctions).
GetMethod
("Substring", new[] { typeof(string), typeof(double) })!;
35
public static readonly MethodInfo Substring3 = typeof(XsltFunctions).
GetMethod
("Substring", new[] { typeof(string), typeof(double), typeof(double) })!;
39
public static readonly MethodInfo Floor = typeof(Math).
GetMethod
("Floor", new[] { typeof(double) })!;
40
public static readonly MethodInfo Ceiling = typeof(Math).
GetMethod
("Ceiling", new[] { typeof(double) })!;
System.Reflection.DispatchProxy (2)
System\Reflection\DispatchProxyGenerator.cs (2)
52
private static readonly MethodInfo s_getTypeFromHandleMethod = typeof(Type).
GetMethod
("GetTypeFromHandle", new Type[] { typeof(RuntimeTypeHandle) })!;
59
typeof(MethodInfo).
GetMethod
("MakeGenericMethod", new Type[] { typeof(Type[]) })!;
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
246
return type.
GetMethod
(name, types);
System.Speech (2)
Internal\SrgsCompiler\AppDomainGrammarProxy.cs (1)
42
MethodInfo? onInit = _grammarType.
GetMethod
(method, types);
Recognition\Grammar.cs (1)
1014
MethodInfo? onInit = GetType().
GetMethod
(methodName, types);
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (1)
694
typeof(Type).
GetMethod
(nameof(Type.GetTypeFromHandle), new[] { typeof(RuntimeTypeHandle) })!;
System.Text.RegularExpressions (59)
System\Text\RegularExpressions\RegexCompiler.cs (59)
47
private static MethodInfo CharIsDigitMethod => field ??= typeof(char).
GetMethod
("IsDigit", [typeof(char)])!;
48
private static MethodInfo CharIsWhiteSpaceMethod => field ??= typeof(char).
GetMethod
("IsWhiteSpace", [typeof(char)])!;
49
private static MethodInfo CharIsControlMethod => field ??= typeof(char).
GetMethod
("IsControl", [typeof(char)])!;
50
private static MethodInfo CharIsLetterMethod => field ??= typeof(char).
GetMethod
("IsLetter", [typeof(char)])!;
51
private static MethodInfo CharIsAsciiDigitMethod => field ??= typeof(char).
GetMethod
("IsAsciiDigit", [typeof(char)])!;
52
private static MethodInfo CharIsAsciiLetterMethod => field ??= typeof(char).
GetMethod
("IsAsciiLetter", [typeof(char)])!;
53
private static MethodInfo CharIsAsciiLetterLowerMethod => field ??= typeof(char).
GetMethod
("IsAsciiLetterLower", [typeof(char)])!;
54
private static MethodInfo CharIsAsciiLetterUpperMethod => field ??= typeof(char).
GetMethod
("IsAsciiLetterUpper", [typeof(char)])!;
55
private static MethodInfo CharIsAsciiLetterOrDigitMethod => field ??= typeof(char).
GetMethod
("IsAsciiLetterOrDigit", [typeof(char)])!;
56
private static MethodInfo CharIsAsciiHexDigitMethod => field ??= typeof(char).
GetMethod
("IsAsciiHexDigit", [typeof(char)])!;
57
private static MethodInfo CharIsAsciiHexDigitLowerMethod => field ??= typeof(char).
GetMethod
("IsAsciiHexDigitLower", [typeof(char)])!;
58
private static MethodInfo CharIsAsciiHexDigitUpperMethod => field ??= typeof(char).
GetMethod
("IsAsciiHexDigitUpper", [typeof(char)])!;
59
private static MethodInfo CharIsLetterOrDigitMethod => field ??= typeof(char).
GetMethod
("IsLetterOrDigit", [typeof(char)])!;
60
private static MethodInfo CharIsLowerMethod => field ??= typeof(char).
GetMethod
("IsLower", [typeof(char)])!;
61
private static MethodInfo CharIsUpperMethod => field ??= typeof(char).
GetMethod
("IsUpper", [typeof(char)])!;
62
private static MethodInfo CharIsNumberMethod => field ??= typeof(char).
GetMethod
("IsNumber", [typeof(char)])!;
63
private static MethodInfo CharIsPunctuationMethod => field ??= typeof(char).
GetMethod
("IsPunctuation", [typeof(char)])!;
64
private static MethodInfo CharIsSeparatorMethod => field ??= typeof(char).
GetMethod
("IsSeparator", [typeof(char)])!;
65
private static MethodInfo CharIsSymbolMethod => field ??= typeof(char).
GetMethod
("IsSymbol", [typeof(char)])!;
66
private static MethodInfo CharGetUnicodeInfoMethod => field ??= typeof(char).
GetMethod
("GetUnicodeCategory", [typeof(char)])!;
67
private static MethodInfo SpanGetItemMethod => field ??= typeof(ReadOnlySpan<char>).
GetMethod
("get_Item", [typeof(int)])!;
69
private static MethodInfo SpanIndexOfCharMethod => field ??= typeof(MemoryExtensions).
GetMethod
("IndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
70
private static MethodInfo SpanIndexOfSpanMethod => field ??= typeof(MemoryExtensions).
GetMethod
("IndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
71
private static MethodInfo SpanIndexOfSpanStringComparisonMethod => field ??= typeof(MemoryExtensions).
GetMethod
("IndexOf", [typeof(ReadOnlySpan<char>), typeof(ReadOnlySpan<char>), typeof(StringComparison)])!;
72
private static MethodInfo SpanIndexOfAnyCharCharMethod => field ??= typeof(MemoryExtensions).
GetMethod
("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
73
private static MethodInfo SpanIndexOfAnyCharCharCharMethod => field ??= typeof(MemoryExtensions).
GetMethod
("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
74
private static MethodInfo SpanIndexOfAnySpanMethod => field ??= typeof(MemoryExtensions).
GetMethod
("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
75
private static MethodInfo SpanIndexOfAnySearchValuesMethod => field ??= typeof(MemoryExtensions).
GetMethod
("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
76
private static MethodInfo SpanIndexOfAnySearchValuesStringMethod => field ??= typeof(MemoryExtensions).
GetMethod
("IndexOfAny", [typeof(ReadOnlySpan<char>), typeof(SearchValues<string>)])!;
77
private static MethodInfo SpanIndexOfAnyExceptCharMethod => field ??= typeof(MemoryExtensions).
GetMethod
("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
78
private static MethodInfo SpanIndexOfAnyExceptCharCharMethod => field ??= typeof(MemoryExtensions).
GetMethod
("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
79
private static MethodInfo SpanIndexOfAnyExceptCharCharCharMethod => field ??= typeof(MemoryExtensions).
GetMethod
("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
80
private static MethodInfo SpanIndexOfAnyExceptSpanMethod => field ??= typeof(MemoryExtensions).
GetMethod
("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
81
private static MethodInfo SpanIndexOfAnyExceptSearchValuesMethod => field ??= typeof(MemoryExtensions).
GetMethod
("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
82
private static MethodInfo SpanIndexOfAnyInRangeMethod => field ??= typeof(MemoryExtensions).
GetMethod
("IndexOfAnyInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
83
private static MethodInfo SpanIndexOfAnyExceptInRangeMethod => field ??= typeof(MemoryExtensions).
GetMethod
("IndexOfAnyExceptInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
84
private static MethodInfo SpanLastIndexOfCharMethod => field ??= typeof(MemoryExtensions).
GetMethod
("LastIndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
85
private static MethodInfo SpanLastIndexOfAnyCharCharMethod => field ??= typeof(MemoryExtensions).
GetMethod
("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
86
private static MethodInfo SpanLastIndexOfAnyCharCharCharMethod => field ??= typeof(MemoryExtensions).
GetMethod
("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
87
private static MethodInfo SpanLastIndexOfAnySpanMethod => field ??= typeof(MemoryExtensions).
GetMethod
("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
88
private static MethodInfo SpanLastIndexOfAnySearchValuesMethod => field ??= typeof(MemoryExtensions).
GetMethod
("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
89
private static MethodInfo SpanLastIndexOfSpanMethod => field ??= typeof(MemoryExtensions).
GetMethod
("LastIndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
90
private static MethodInfo SpanLastIndexOfAnyExceptCharMethod => field ??= typeof(MemoryExtensions).
GetMethod
("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
91
private static MethodInfo SpanLastIndexOfAnyExceptCharCharMethod => field ??= typeof(MemoryExtensions).
GetMethod
("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
92
private static MethodInfo SpanLastIndexOfAnyExceptCharCharCharMethod => field ??= typeof(MemoryExtensions).
GetMethod
("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
93
private static MethodInfo SpanLastIndexOfAnyExceptSpanMethod => field ??= typeof(MemoryExtensions).
GetMethod
("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
94
private static MethodInfo SpanLastIndexOfAnyExceptSearchValuesMethod => field ??= typeof(MemoryExtensions).
GetMethod
("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
95
private static MethodInfo SpanLastIndexOfAnyInRangeMethod => field ??= typeof(MemoryExtensions).
GetMethod
("LastIndexOfAnyInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
96
private static MethodInfo SpanLastIndexOfAnyExceptInRangeMethod => field ??= typeof(MemoryExtensions).
GetMethod
("LastIndexOfAnyExceptInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
97
private static MethodInfo SpanSliceIntMethod => field ??= typeof(ReadOnlySpan<char>).
GetMethod
("Slice", [typeof(int)])!;
98
private static MethodInfo SpanSliceIntIntMethod => field ??= typeof(ReadOnlySpan<char>).
GetMethod
("Slice", [typeof(int), typeof(int)])!;
99
private static MethodInfo SpanStartsWithSpanMethod => field ??= typeof(MemoryExtensions).
GetMethod
("StartsWith", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
100
private static MethodInfo SpanStartsWithSpanComparisonMethod => field ??= typeof(MemoryExtensions).
GetMethod
("StartsWith", [typeof(ReadOnlySpan<char>), typeof(ReadOnlySpan<char>), typeof(StringComparison)])!;
101
private static MethodInfo SpanSequenceEqualSpanMethod => field ??= typeof(MemoryExtensions).
GetMethod
("SequenceEqual", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
102
private static MethodInfo StringAsSpanMethod => field ??= typeof(MemoryExtensions).
GetMethod
("AsSpan", [typeof(string)])!;
103
private static MethodInfo StringGetCharsMethod => field ??= typeof(string).
GetMethod
("get_Chars", [typeof(int)])!;
105
private static MethodInfo MathMinIntIntMethod => field ??= typeof(Math).
GetMethod
("Min", [typeof(int), typeof(int)])!;
106
private static MethodInfo MemoryMarshalGetArrayDataReferenceSearchValuesMethod => field ??= typeof(MemoryMarshal).
GetMethod
("GetArrayDataReference", [Type.MakeGenericMethodParameter(0).MakeArrayType()])!.MakeGenericMethod(typeof(SearchValues<char>))!;
107
private static MethodInfo UnsafeAsMethod => field ??= typeof(Unsafe).
GetMethod
("As", [typeof(object)])!;
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
736
MethodInfo? mi = GetReflectionTypeHelper(manager, target).
GetMethod
(methodRef.MethodName, paramTypes);
743
mi = target.GetType().
GetMethod
(methodRef.MethodName, paramTypes)!;
System.Xaml (1)
System\Xaml\Runtime\DynamicMethodRuntime.cs (1)
598
s_InvokeMemberMethod = typeof(Type).
GetMethod
(KnownStrings.InvokeMember,