259 references to GetMethod
Aspire.RabbitMQ.Client.v7.Tests (1)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (1)
228s_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)
21return type.GetMethod(name, types);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (1)
701Call(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)
1281MethodInfo enumerator = type.GetMethod("GetEnumerator", new Type[0]); 1321MethodInfo addMethod = type.GetMethod("Add", new Type[] { currentType }); 1326addMethod = type.GetMethod("Add", new Type[] { currentType }); 1383MethodInfo addMethod = type.GetMethod("Add", new Type[] { indexer.PropertyType });
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
402MethodInfo format = formatter.GetMethod("To" + pm.TypeDesc.FormatterName, new Type[] { typeof(string) });
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (1)
967System.Reflection.MethodInfo format = formatter.GetMethod("ToString", new Type[] { pm.TypeDesc.Type });
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (3)
85s_arraySetValue = typeof(Array).GetMethod("SetValue", new Type[] { typeof(object), typeof(int) }); 102s_objectToString = typeof(object).GetMethod("ToString", Array.Empty<Type>()); 117s_stringFormat = typeof(string).GetMethod("Format", new Type[] { typeof(string), typeof(object[]) });
GetDocument.Insider (2)
Commands\GetDocumentCommandWorker.cs (2)
219var generateWithVersionMethod = serviceType.GetMethod( 431var method = type.GetMethod(methodName, parameterTypes);
illink (1)
ILLink.RoslynAnalyzer (1)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
90/// <item><see cref="System.Type.GetMethod(string, System.Type[])"/></item>
Microsoft.AspNetCore.InternalTesting.Tests (1)
TestableAssembly.cs (1)
86var trueInfo = typeof(Assert).GetMethod("True", new[] { typeof(bool) });
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\ParameterBinderTest.cs (1)
139var method = typeof(Person).GetMethod(nameof(Person.Equals), new[] { typeof(Person) });
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
DataAnnotationsModelValidatorTest.cs (1)
40var method = typeof(ModelValidationResultComparer).GetMethod(
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (1)
SnapshotTestHelper.cs (1)
201var targetMethod = serviceType.GetMethod("GenerateAsync", [typeof(string), typeof(TextWriter)]) ?? throw new InvalidOperationException("Could not resolve GenerateAsync method.");
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Options\GlobalOptionsTests.cs (1)
137var getValueOrDefault = property.PropertyType.GetMethod("GetValueOrDefault", []);
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
HelperFactory.cs (2)
209private static MethodInfo HandlebarsExtensionsWriteSafeString = typeof(HandlebarsExtensions).GetMethod( 227private static MethodInfo ConvertChangeType = typeof(Convert).GetMethod(
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)
307System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Template\SearchSpace.cs (1)
324System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Template\SweepableEstimator.cs (1)
326System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Template\SweepableEstimator_T_.cs (1)
331System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Template\SweepableEstimatorFactory.cs (1)
302System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Microsoft.ML.CodeGenerator (10)
Templates\Azure\Console\AzureModelBuilder.cs (1)
401System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Azure\Model\AzureImageModelOutputClass.cs (1)
342System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (1)
342System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Console\ConsumeModel.cs (1)
353System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Console\ModelBuilder.cs (1)
718System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Console\ModelInputClass.cs (1)
316System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Console\ModelOutputClass.cs (1)
359System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Console\ModelProject.cs (1)
348System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Console\PredictProgram.cs (1)
375System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Console\PredictProject.cs (1)
353System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (1)
1389il.Emit(OpCodes.Call, CallSiteType.GetMethod("Create", {CallSiteBinderType}))
PresentationCore (5)
System\Windows\FontStretchConverter.cs (1)
93MethodInfo mi = typeof(FontStretch).GetMethod("FromOpenTypeStretch", new Type[]{typeof(int)});
System\Windows\FontWeightConverter.cs (1)
93MethodInfo mi = typeof(FontWeight).GetMethod("FromOpenTypeWeight", new Type[]{typeof(int)});
System\Windows\Media\Animation\KeyTimeConverter.cs (2)
145mi = typeof(KeyTime).GetMethod("FromPercent", new Type[] { typeof(double) }); 151mi = typeof(KeyTime).GetMethod("FromTimeSpan", new Type[] { typeof(TimeSpan) });
System\Windows\Media\ColorConverter.cs (1)
103MethodInfo mi = typeof(Color).GetMethod("FromArgb", new Type[]{typeof(byte), typeof(byte), typeof(byte), typeof(byte)});
PresentationFramework (2)
MS\Internal\Data\IndexedEnumerable.cs (1)
478MethodInfo mi = srcType.GetMethod("IndexOf", new Type[] { typeof(object) });
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
896typeof(IObjectReference).GetMethod("As", Type.EmptyTypes).MakeGenericMethod(helperType.FindVftblType())
PresentationFramework-SystemCore (2)
DynamicAccessorImpl.cs (2)
79createMethod = callsiteType.GetMethod("Create", new Type[]{ typeof(CallSiteBinder) }); 99createMethod = callsiteType.GetMethod("Create", new Type[]{ typeof(CallSiteBinder) });
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\ConstraintServices.cs (1)
20private static readonly MethodInfo _metadataEqualsMethod = typeof(object).GetMethod("Equals", new Type[] { typeof(object) })!;
System\ComponentModel\Composition\MetadataViewGenerator.cs (1)
75private static readonly MethodInfo ObjectGetType = typeof(object).GetMethod("GetType", Type.EmptyTypes)!;
System.ComponentModel.TypeConverter (8)
System\ComponentModel\EnumConverter.cs (1)
155MethodInfo? method = typeof(Enum).GetMethod("ToObject", new Type[] { typeof(Type), underlyingType });
System\ComponentModel\MemberDescriptor.cs (1)
408result = componentClass.GetMethod(name, args);
System\ComponentModel\ReflectTypeDescriptionProvider.cs (2)
1281MethodInfo? getMethod = providerType.GetMethod("Get" + provideAttr.PropertyName, new Type[] { receiverType }); 1285MethodInfo? setMethod = providerType.GetMethod("Set" + provideAttr.PropertyName, new Type[] { receiverType, getMethod.ReturnType });
System\ComponentModel\TimeSpanConverter.cs (1)
70typeof(TimeSpan).GetMethod(nameof(TimeSpan.Parse), new Type[] { typeof(string) }),
System\Drawing\ColorConverter.cs (3)
111member = typeof(Color).GetMethod("FromArgb", new Type[] { typeof(int), typeof(int), typeof(int), typeof(int) }); 116member = typeof(Color).GetMethod("FromName", new Type[] { typeof(string) }); 121member = typeof(Color).GetMethod("FromArgb", new Type[] { typeof(int), typeof(int), typeof(int) });
System.Data.Common (1)
System\Data\ColumnTypeConverter.cs (1)
96MethodInfo method = typeof(Type).GetMethod("GetType", new Type[] { typeof(string) })!;
System.Linq.Expressions (26)
System\Dynamic\Utils\CachedReflectionInfo.cs (1)
14s_String_Format_String_ObjectArray ??= typeof(string).GetMethod(nameof(string.Format), new Type[] { typeof(string), typeof(object[]) })!;
System\Linq\Expressions\Common\CachedReflectionInfo.cs (18)
63s_MethodBase_GetMethodFromHandle_RuntimeMethodHandle ??= typeof(MethodBase).GetMethod(nameof(MethodBase.GetMethodFromHandle), new[] { typeof(RuntimeMethodHandle) })!; 67s_MethodBase_GetMethodFromHandle_RuntimeMethodHandle_RuntimeTypeHandle ??= typeof(MethodBase).GetMethod(nameof(MethodBase.GetMethodFromHandle), new[] { typeof(RuntimeMethodHandle), typeof(RuntimeTypeHandle) })!; 71s_MethodInfo_CreateDelegate_Type_Object ??= typeof(MethodInfo).GetMethod(nameof(MethodInfo.CreateDelegate), new[] { typeof(Type), typeof(object) })!; 75s_String_op_Equality_String_String ??= typeof(string).GetMethod("op_Equality", new[] { typeof(string), typeof(string) })!; 79s_String_Equals_String_String ??= typeof(string).GetMethod("Equals", new[] { typeof(string), typeof(string) })!; 83s_DictionaryOfStringInt32_Add_String_Int32 ??= typeof(Dictionary<string, int>).GetMethod(nameof(Dictionary<string, int>.Add), new[] { typeof(string), typeof(int) })!; 99s_Decimal_op_Implicit_Byte ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(byte) })!; 103s_Decimal_op_Implicit_SByte ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(sbyte) })!; 107s_Decimal_op_Implicit_Int16 ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(short) })!; 111s_Decimal_op_Implicit_UInt16 ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(ushort) })!; 115s_Decimal_op_Implicit_Int32 ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(int) })!; 119s_Decimal_op_Implicit_UInt32 ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(uint) })!; 123s_Decimal_op_Implicit_Int64 ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(long) })!; 127s_Decimal_op_Implicit_UInt64 ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(ulong) })!; 131s_Decimal_op_Implicit_Char ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(char) })!; 135s_Math_Pow_Double_Double ??= typeof(Math).GetMethod(nameof(Math.Pow), new[] { typeof(double), typeof(double) })!; 152s_RuntimeOps_CreateRuntimeVariables_ObjectArray_Int64Array ??= typeof(RuntimeOps).GetMethod(nameof(RuntimeOps.CreateRuntimeVariables), new[] { typeof(object[]), typeof(long[]) })!; 156s_RuntimeOps_CreateRuntimeVariables ??= typeof(RuntimeOps).GetMethod(nameof(RuntimeOps.CreateRuntimeVariables), Type.EmptyTypes)!;
System\Linq\Expressions\Compiler\ILGen.cs (1)
17private static readonly MethodInfo s_nullableGetValueOrDefault = typeof(Nullable<>).GetMethod("GetValueOrDefault", Type.EmptyTypes)!;
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
783MethodInfo toString = node.GetType().GetMethod("ToString", Type.EmptyTypes)!;
System\Linq\Expressions\Interpreter\CallInstruction.cs (3)
129typeof(Array).GetMethod("GetValue", new[] { typeof(int) }) : 135typeof(Array).GetMethod("GetValue", new[] { typeof(int), typeof(int) }) : 141typeof(Array).GetMethod("GetValue", new[] { typeof(int), typeof(int), typeof(int) }) :
System\Linq\Expressions\LambdaExpression.cs (2)
24private static readonly MethodInfo s_expressionCompileMethodInfo = typeof(Expression<>).GetMethod("Compile", Type.EmptyTypes)!; 127return typeof(LambdaExpression).GetMethod("Compile", Type.EmptyTypes)!;
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (3)
111MethodInfo mi = consoleType.GetMethod("WriteLine", s_parameterTypes)!; 131MethodInfo mi = typeof(IO.TextWriter).GetMethod("WriteLine", [cls]) ?? 163MethodInfo mi = typeof(IO.TextWriter).GetMethod("WriteLine", [cls]) ??
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokerEmitUtil.cs (2)
342s_Pointer_Box ??= typeof(Pointer).GetMethod(nameof(Pointer.Box), [typeof(void*), typeof(Type)])!; 346s_Type_GetTypeFromHandle ??= typeof(Type).GetMethod(nameof(Type.GetTypeFromHandle), [typeof(RuntimeTypeHandle)])!;
src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeReflectionExtensions.cs (1)
72return type.GetMethod(name, parameters);
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (2)
462MethodInfo rmi = m_containingType.GetMethod(m_strName, m_parameterTypes!)!; 474MethodInfo rmi = m_containingType.GetMethod(m_strName, m_parameterTypes!)!;
System.Private.DataContractSerialization (6)
System\Runtime\Serialization\CodeGenerator.cs (3)
52s_arraySetValue = typeof(Array).GetMethod("SetValue", new Type[] { typeof(object), typeof(int) }); 66s_objectToString = typeof(object).GetMethod("ToString", Type.EmptyTypes); 80s_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)
75MethodInfo 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)
462Call(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)
28return typeof(IList).GetMethod(
System\Xml\Serialization\Types.cs (4)
1274MethodInfo? enumerator = type.GetMethod("GetEnumerator", Type.EmptyTypes); 1311MethodInfo? addMethod = type.GetMethod("Add", new Type[] { currentType }); 1316addMethod = type.GetMethod("Add", new Type[] { currentType }); 1373MethodInfo? addMethod = type.GetMethod("Add", new Type[] { indexer.PropertyType });
System\Xml\Serialization\XmlSchemaExporter.cs (1)
924System.Reflection.MethodInfo? format = formatter.GetMethod("ToString", new Type[] { pm.TypeDesc.Type! });
System\Xml\Serialization\XmlSerializationILGen.cs (1)
212MethodInfo Hashtable_set_Item = typeof(Hashtable).GetMethod(
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
1509getEnumeratorMethod = arrayTypeDesc.Type!.GetMethod( 2457MethodInfo constructorInvoke = typeof(ConstructorInfo).GetMethod("Invoke", new Type[] { typeof(object[]) })!;
System\Xml\Xsl\IlGen\GenerateHelper.cs (59)
118SeqReuse = sequenceType.GetMethod("CreateOrReuse", new[] { sequenceType })!; 119SeqReuseSgl = sequenceType.GetMethod("CreateOrReuse", new[] { sequenceType, storageType })!; 270public static readonly MethodInfo ChangeTypeXsltArg = typeof(XmlQueryRuntime).GetMethod("ChangeTypeXsltArgument", new[] { typeof(int), typeof(object), typeof(Type) })!; 288public static readonly MethodInfo ItemMatchesCode = typeof(XmlQueryRuntime).GetMethod("MatchesXmlType", new[] { typeof(XPathItem), typeof(XmlTypeCode) })!; 289public static readonly MethodInfo ItemMatchesType = typeof(XmlQueryRuntime).GetMethod("MatchesXmlType", new[] { typeof(XPathItem), typeof(int) })!; 290public static readonly MethodInfo QNameEqualLit = typeof(XmlQueryRuntime).GetMethod("IsQNameEqual", new[] { typeof(XPathNavigator), typeof(int), typeof(int) })!; 291public static readonly MethodInfo QNameEqualNav = typeof(XmlQueryRuntime).GetMethod("IsQNameEqual", new[] { typeof(XPathNavigator), typeof(XPathNavigator) })!; 294public static readonly MethodInfo SeqMatchesCode = typeof(XmlQueryRuntime).GetMethod("MatchesXmlType", new[] { typeof(IList<XPathItem>), typeof(XmlTypeCode) })!; 295public static readonly MethodInfo SeqMatchesType = typeof(XmlQueryRuntime).GetMethod("MatchesXmlType", new[] { typeof(IList<XPathItem>), typeof(int) })!; 299public static readonly MethodInfo TagAndMappings = typeof(XmlQueryRuntime).GetMethod("ParseTagName", new[] { typeof(string), typeof(int) })!; 300public static readonly MethodInfo TagAndNamespace = typeof(XmlQueryRuntime).GetMethod("ParseTagName", new[] { typeof(string), typeof(string) })!; 321public static readonly MethodInfo ValueAsAny = typeof(XPathItem).GetMethod("ValueAs", new[] { typeof(Type), typeof(IXmlNamespaceResolver) })!; 326public static readonly MethodInfo NavMoveAttr = typeof(XPathNavigator).GetMethod("MoveToAttribute", new[] { typeof(string), typeof(string) })!; 337public static readonly MethodInfo StartElemLitName = typeof(XmlQueryOutput).GetMethod("WriteStartElement", new[] { typeof(string), typeof(string), typeof(string) })!; 338public static readonly MethodInfo StartElemLocName = typeof(XmlQueryOutput).GetMethod("WriteStartElementLocalName", new[] { typeof(string) })!; 340public static readonly MethodInfo StartAttrLitName = typeof(XmlQueryOutput).GetMethod("WriteStartAttribute", new[] { typeof(string), typeof(string), typeof(string) })!; 341public static readonly MethodInfo StartAttrLocName = typeof(XmlQueryOutput).GetMethod("WriteStartAttributeLocalName", new[] { typeof(string) })!; 344public static readonly MethodInfo NoEntText = typeof(XmlQueryOutput).GetMethod("WriteRaw", new[] { typeof(string) })!; 349public static readonly MethodInfo StartElemLitNameUn = typeof(XmlQueryOutput).GetMethod("WriteStartElementUnchecked", new[] { typeof(string), typeof(string), typeof(string) })!; 350public static readonly MethodInfo StartElemLocNameUn = typeof(XmlQueryOutput).GetMethod("WriteStartElementUnchecked", new[] { typeof(string) })!; 352public static readonly MethodInfo EndElemLitNameUn = typeof(XmlQueryOutput).GetMethod("WriteEndElementUnchecked", new[] { typeof(string), typeof(string), typeof(string) })!; 353public static readonly MethodInfo EndElemLocNameUn = typeof(XmlQueryOutput).GetMethod("WriteEndElementUnchecked", new[] { typeof(string) })!; 354public static readonly MethodInfo StartAttrLitNameUn = typeof(XmlQueryOutput).GetMethod("WriteStartAttributeUnchecked", new[] { typeof(string), typeof(string), typeof(string) })!; 355public static readonly MethodInfo StartAttrLocNameUn = typeof(XmlQueryOutput).GetMethod("WriteStartAttributeUnchecked", new[] { typeof(string) })!; 363public static readonly MethodInfo StartElemCopyName = typeof(XmlQueryOutput).GetMethod("WriteStartElementComputed", new[] { typeof(XPathNavigator) })!; 364public static readonly MethodInfo StartElemMapName = typeof(XmlQueryOutput).GetMethod("WriteStartElementComputed", new[] { typeof(string), typeof(int) })!; 365public static readonly MethodInfo StartElemNmspName = typeof(XmlQueryOutput).GetMethod("WriteStartElementComputed", new[] { typeof(string), typeof(string) })!; 366public static readonly MethodInfo StartElemQName = typeof(XmlQueryOutput).GetMethod("WriteStartElementComputed", new[] { typeof(XmlQualifiedName) })!; 367public static readonly MethodInfo StartAttrCopyName = typeof(XmlQueryOutput).GetMethod("WriteStartAttributeComputed", new[] { typeof(XPathNavigator) })!; 368public static readonly MethodInfo StartAttrMapName = typeof(XmlQueryOutput).GetMethod("WriteStartAttributeComputed", new[] { typeof(string), typeof(int) })!; 369public static readonly MethodInfo StartAttrNmspName = typeof(XmlQueryOutput).GetMethod("WriteStartAttributeComputed", new[] { typeof(string), typeof(string) })!; 370public static readonly MethodInfo StartAttrQName = typeof(XmlQueryOutput).GetMethod("WriteStartAttributeComputed", new[] { typeof(XmlQualifiedName) })!; 385public static readonly MethodInfo DecCmp = typeof(decimal).GetMethod("Compare", new[] { typeof(decimal), typeof(decimal) })!; 386public static readonly MethodInfo DecEq = typeof(decimal).GetMethod("Equals", new[] { typeof(decimal), typeof(decimal) })!; 393public static readonly MethodInfo StrEq = typeof(string).GetMethod("Equals", new[] { typeof(string), typeof(string) })!; 394public static readonly MethodInfo StrCat2 = typeof(string).GetMethod("Concat", new[] { typeof(string), typeof(string) })!; 395public static readonly MethodInfo StrCat3 = typeof(string).GetMethod("Concat", new[] { typeof(string), typeof(string), typeof(string) })!; 396public static readonly MethodInfo StrCat4 = typeof(string).GetMethod("Concat", new[] { typeof(string), typeof(string), typeof(string), typeof(string) })!; 397public static readonly MethodInfo StrCmp = typeof(string).GetMethod("CompareOrdinal", new[] { typeof(string), typeof(string) })!; 401public static readonly MethodInfo DblToDec = typeof(XsltConvert).GetMethod("ToDecimal", new[] { typeof(double) })!; 402public static readonly MethodInfo DblToInt = typeof(XsltConvert).GetMethod("ToInt", new[] { typeof(double) })!; 403public static readonly MethodInfo DblToLng = typeof(XsltConvert).GetMethod("ToLong", new[] { typeof(double) })!; 404public static readonly MethodInfo DblToStr = typeof(XsltConvert).GetMethod("ToString", new[] { typeof(double) })!; 405public static readonly MethodInfo DecToDbl = typeof(XsltConvert).GetMethod("ToDouble", new[] { typeof(decimal) })!; 406public static readonly MethodInfo DTToStr = typeof(XsltConvert).GetMethod("ToString", new[] { typeof(DateTime) })!; 407public static readonly MethodInfo IntToDbl = typeof(XsltConvert).GetMethod("ToDouble", new[] { typeof(int) })!; 408public static readonly MethodInfo LngToDbl = typeof(XsltConvert).GetMethod("ToDouble", new[] { typeof(long) })!; 409public static readonly MethodInfo StrToDbl = typeof(XsltConvert).GetMethod("ToDouble", new[] { typeof(string) })!; 410public static readonly MethodInfo StrToDT = typeof(XsltConvert).GetMethod("ToDateTime", new[] { typeof(string) })!; 412public static readonly MethodInfo ItemToBool = typeof(XsltConvert).GetMethod("ToBoolean", new[] { typeof(XPathItem) })!; 413public static readonly MethodInfo ItemToDbl = typeof(XsltConvert).GetMethod("ToDouble", new[] { typeof(XPathItem) })!; 414public static readonly MethodInfo ItemToStr = typeof(XsltConvert).GetMethod("ToString", new[] { typeof(XPathItem) })!; 415public static readonly MethodInfo ItemToNode = typeof(XsltConvert).GetMethod("ToNode", new[] { typeof(XPathItem) })!; 416public static readonly MethodInfo ItemToNodes = typeof(XsltConvert).GetMethod("ToNodeSet", new[] { typeof(XPathItem) })!; 418public static readonly MethodInfo ItemsToBool = typeof(XsltConvert).GetMethod("ToBoolean", new[] { typeof(IList<XPathItem>) })!; 419public static readonly MethodInfo ItemsToDbl = typeof(XsltConvert).GetMethod("ToDouble", new[] { typeof(IList<XPathItem>) })!; 420public static readonly MethodInfo ItemsToNode = typeof(XsltConvert).GetMethod("ToNode", new[] { typeof(IList<XPathItem>) })!; 421public static readonly MethodInfo ItemsToNodes = typeof(XsltConvert).GetMethod("ToNodeSet", new[] { typeof(IList<XPathItem>) })!; 422public static readonly MethodInfo ItemsToStr = typeof(XsltConvert).GetMethod("ToString", new[] { typeof(IList<XPathItem>) })!;
System\Xml\Xsl\Runtime\XsltLibrary.cs (5)
23public static readonly MethodInfo EnsureNodeSet = typeof(XsltConvert).GetMethod("EnsureNodeSet", new[] { typeof(IList<XPathItem>) })!; 34public static readonly MethodInfo Substring2 = typeof(XsltFunctions).GetMethod("Substring", new[] { typeof(string), typeof(double) })!; 35public static readonly MethodInfo Substring3 = typeof(XsltFunctions).GetMethod("Substring", new[] { typeof(string), typeof(double), typeof(double) })!; 39public static readonly MethodInfo Floor = typeof(Math).GetMethod("Floor", new[] { typeof(double) })!; 40public static readonly MethodInfo Ceiling = typeof(Math).GetMethod("Ceiling", new[] { typeof(double) })!;
System.Reflection.DispatchProxy (2)
System\Reflection\DispatchProxyGenerator.cs (2)
52private static readonly MethodInfo s_getTypeFromHandleMethod = typeof(Type).GetMethod("GetTypeFromHandle", new Type[] { typeof(RuntimeTypeHandle) })!; 59typeof(MethodInfo).GetMethod("MakeGenericMethod", new Type[] { typeof(Type[]) })!;
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
246return type.GetMethod(name, types);
System.Text.RegularExpressions (58)
System\Text\RegularExpressions\RegexCompiler.cs (58)
46private static MethodInfo CharIsDigitMethod => field ??= typeof(char).GetMethod("IsDigit", [typeof(char)])!; 47private static MethodInfo CharIsWhiteSpaceMethod => field ??= typeof(char).GetMethod("IsWhiteSpace", [typeof(char)])!; 48private static MethodInfo CharIsControlMethod => field ??= typeof(char).GetMethod("IsControl", [typeof(char)])!; 49private static MethodInfo CharIsLetterMethod => field ??= typeof(char).GetMethod("IsLetter", [typeof(char)])!; 50private static MethodInfo CharIsAsciiDigitMethod => field ??= typeof(char).GetMethod("IsAsciiDigit", [typeof(char)])!; 51private static MethodInfo CharIsAsciiLetterMethod => field ??= typeof(char).GetMethod("IsAsciiLetter", [typeof(char)])!; 52private static MethodInfo CharIsAsciiLetterLowerMethod => field ??= typeof(char).GetMethod("IsAsciiLetterLower", [typeof(char)])!; 53private static MethodInfo CharIsAsciiLetterUpperMethod => field ??= typeof(char).GetMethod("IsAsciiLetterUpper", [typeof(char)])!; 54private static MethodInfo CharIsAsciiLetterOrDigitMethod => field ??= typeof(char).GetMethod("IsAsciiLetterOrDigit", [typeof(char)])!; 55private static MethodInfo CharIsAsciiHexDigitMethod => field ??= typeof(char).GetMethod("IsAsciiHexDigit", [typeof(char)])!; 56private static MethodInfo CharIsAsciiHexDigitLowerMethod => field ??= typeof(char).GetMethod("IsAsciiHexDigitLower", [typeof(char)])!; 57private static MethodInfo CharIsAsciiHexDigitUpperMethod => field ??= typeof(char).GetMethod("IsAsciiHexDigitUpper", [typeof(char)])!; 58private static MethodInfo CharIsLetterOrDigitMethod => field ??= typeof(char).GetMethod("IsLetterOrDigit", [typeof(char)])!; 59private static MethodInfo CharIsLowerMethod => field ??= typeof(char).GetMethod("IsLower", [typeof(char)])!; 60private static MethodInfo CharIsUpperMethod => field ??= typeof(char).GetMethod("IsUpper", [typeof(char)])!; 61private static MethodInfo CharIsNumberMethod => field ??= typeof(char).GetMethod("IsNumber", [typeof(char)])!; 62private static MethodInfo CharIsPunctuationMethod => field ??= typeof(char).GetMethod("IsPunctuation", [typeof(char)])!; 63private static MethodInfo CharIsSeparatorMethod => field ??= typeof(char).GetMethod("IsSeparator", [typeof(char)])!; 64private static MethodInfo CharIsSymbolMethod => field ??= typeof(char).GetMethod("IsSymbol", [typeof(char)])!; 65private static MethodInfo CharGetUnicodeInfoMethod => field ??= typeof(char).GetMethod("GetUnicodeCategory", [typeof(char)])!; 66private static MethodInfo SpanGetItemMethod => field ??= typeof(ReadOnlySpan<char>).GetMethod("get_Item", [typeof(int)])!; 68private static MethodInfo SpanIndexOfCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 69private static MethodInfo SpanIndexOfSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 70private static MethodInfo SpanIndexOfSpanStringComparisonMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOf", [typeof(ReadOnlySpan<char>), typeof(ReadOnlySpan<char>), typeof(StringComparison)])!; 71private static MethodInfo SpanIndexOfAnyCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 72private 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)); 73private static MethodInfo SpanIndexOfAnySpanMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 74private static MethodInfo SpanIndexOfAnySearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 75private static MethodInfo SpanIndexOfAnySearchValuesStringMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<char>), typeof(SearchValues<string>)])!; 76private static MethodInfo SpanIndexOfAnyExceptCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 77private static MethodInfo SpanIndexOfAnyExceptCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 78private 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)); 79private static MethodInfo SpanIndexOfAnyExceptSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 80private static MethodInfo SpanIndexOfAnyExceptSearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 81private static MethodInfo SpanIndexOfAnyInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 82private static MethodInfo SpanIndexOfAnyExceptInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExceptInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 83private static MethodInfo SpanLastIndexOfCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 84private static MethodInfo SpanLastIndexOfAnyCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 85private 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)); 86private static MethodInfo SpanLastIndexOfAnySpanMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 87private static MethodInfo SpanLastIndexOfAnySearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 88private static MethodInfo SpanLastIndexOfSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 89private static MethodInfo SpanLastIndexOfAnyExceptCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 90private static MethodInfo SpanLastIndexOfAnyExceptCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 91private 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)); 92private static MethodInfo SpanLastIndexOfAnyExceptSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 93private static MethodInfo SpanLastIndexOfAnyExceptSearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 94private static MethodInfo SpanLastIndexOfAnyInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 95private static MethodInfo SpanLastIndexOfAnyExceptInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExceptInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 96private static MethodInfo SpanSliceIntMethod => field ??= typeof(ReadOnlySpan<char>).GetMethod("Slice", [typeof(int)])!; 97private static MethodInfo SpanSliceIntIntMethod => field ??= typeof(ReadOnlySpan<char>).GetMethod("Slice", [typeof(int), typeof(int)])!; 98private static MethodInfo SpanStartsWithSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("StartsWith", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 99private static MethodInfo SpanStartsWithSpanComparisonMethod => field ??= typeof(MemoryExtensions).GetMethod("StartsWith", [typeof(ReadOnlySpan<char>), typeof(ReadOnlySpan<char>), typeof(StringComparison)])!; 100private static MethodInfo StringAsSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("AsSpan", [typeof(string)])!; 101private static MethodInfo StringGetCharsMethod => field ??= typeof(string).GetMethod("get_Chars", [typeof(int)])!; 103private static MethodInfo MathMinIntIntMethod => field ??= typeof(Math).GetMethod("Min", [typeof(int), typeof(int)])!; 104private static MethodInfo MemoryMarshalGetArrayDataReferenceSearchValuesMethod => field ??= typeof(MemoryMarshal).GetMethod("GetArrayDataReference", [Type.MakeGenericMethodParameter(0).MakeArrayType()])!.MakeGenericMethod(typeof(SearchValues<char>))!; 105private static MethodInfo UnsafeAsMethod => field ??= typeof(Unsafe).GetMethod("As", [typeof(object)])!;
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
736MethodInfo? mi = GetReflectionTypeHelper(manager, target).GetMethod(methodRef.MethodName, paramTypes); 743mi = target.GetType().GetMethod(methodRef.MethodName, paramTypes)!;
System.Xaml (1)
System\Xaml\Runtime\DynamicMethodRuntime.cs (1)
598s_InvokeMemberMethod = typeof(Type).GetMethod(KnownStrings.InvokeMember,
System.Xaml.Tests (17)
System\Xaml\Schema\XamlTypeInvokerTests.cs (5)
303type.GetMethod(nameof(ClassWithAllowedContentTypes.Add), new Type[] { typeof(string) }) 317type.GetMethod(nameof(ClassWithAllowedContentTypes.Add), new Type[] { typeof(string) }) 323type.GetMethod(nameof(ClassWithAllowedContentTypes.Add), new Type[] { typeof(Array) }) 329type.GetMethod(nameof(ClassWithAllowedContentTypes.Add), new Type[] { typeof(Array) }) 343type.GetMethod(nameof(ClassWithAllowedContentTypes.Add), new Type[] { typeof(Array) })
System\Xaml\XamlTypeTests.cs (12)
816new XamlMember("Event", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddEventHandler), new Type[] { typeof(object), typeof(EventHandler) }), new XamlSchemaContext()), 817new XamlMember("Getter", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetGetter), new Type[] { typeof(string) }), null, new XamlSchemaContext()), 820new XamlMember("InternalThenPublic", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetInternalThenPublic), new Type[] { typeof(int) }), null, new XamlSchemaContext()), 821new XamlMember("InternalThenPublicEvent", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddInternalThenPublicEventHandler), new Type[] { typeof(object), typeof(OtherHandler) }), new XamlSchemaContext()), 822new XamlMember("PublicThenInternal", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetPublicThenInternal), new Type[] { typeof(string) }), null, new XamlSchemaContext()), 823new XamlMember("PublicThenInternalEvent", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddPublicThenInternalEventHandler), new Type[] { typeof(object), typeof(EventHandler) }), new XamlSchemaContext()), 824new XamlMember("Setter", null, typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.SetSetter), new Type[] { typeof(string), typeof(int) }), new XamlSchemaContext()), 833new XamlMember("Event", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddEventHandler), new Type[] { typeof(object), typeof(EventHandler) }), new XamlSchemaContext()), 834new XamlMember("Getter", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetGetter), new Type[] { typeof(string) }), null, new XamlSchemaContext()), 839new XamlMember("PublicThenInternal", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetPublicThenInternal), new Type[] { typeof(string) }), null, new XamlSchemaContext()), 840new XamlMember("PublicThenInternalEvent", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddPublicThenInternalEventHandler), new Type[] { typeof(object), typeof(EventHandler) }), new XamlSchemaContext()), 841new XamlMember("Setter", null, typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.SetSetter), new Type[] { typeof(string), typeof(int) }), new XamlSchemaContext()),