Implemented interface member:
method
GetMethod
System.Runtime.InteropServices._Type.GetMethod(System.String, System.Type[])
131 references to GetMethod
mscorlib (8)
system\diagnostics\stacktrace.cs (2)
149
MethodInfo symbolsMethodInfo = symbolsType.
GetMethod
("GetSourceLineInfoWithoutCasAssert",
166
symbolsMethodInfo = symbolsType.
GetMethod
("GetSourceLineInfo",
system\reflection\emit\ilgenerator.cs (3)
1188
MethodInfo mi = typeof(Console).
GetMethod
("WriteLine", parameterTypes);
1214
MethodInfo mi = typeof(TextWriter).
GetMethod
("WriteLine", parameterTypes);
1252
MethodInfo mi = typeof(TextWriter).
GetMethod
("WriteLine", parameterTypes);
system\reflection\emit\methodbuilder.cs (2)
638
MethodInfo rmi = m_containingType.
GetMethod
(m_strName, m_parameterTypes);
650
MethodInfo rmi = m_containingType.
GetMethod
(m_strName, m_parameterTypes);
system\reflection\RuntimeReflectionExtensions.cs (1)
58
return type.
GetMethod
(name, parameters);
PresentationCore (5)
Core\CSharp\System\Windows\FontStretchConverter.cs (1)
117
MethodInfo mi = typeof(FontStretch).
GetMethod
("FromOpenTypeStretch", new Type[]{typeof(int)});
Core\CSharp\System\Windows\FontWeightConverter.cs (1)
117
MethodInfo mi = typeof(FontWeight).
GetMethod
("FromOpenTypeWeight", new Type[]{typeof(int)});
Core\CSharp\System\Windows\Media\Animation\KeyTimeConverter.cs (2)
160
mi = typeof(KeyTime).
GetMethod
("FromPercent", new Type[] { typeof(double) });
166
mi = typeof(KeyTime).
GetMethod
("FromTimeSpan", new Type[] { typeof(TimeSpan) });
Core\CSharp\System\Windows\Media\ColorConverter.cs (1)
121
MethodInfo mi = typeof(Color).
GetMethod
("FromArgb", new Type[]{typeof(byte), typeof(byte), typeof(byte), typeof(byte)});
PresentationFramework (6)
src\Framework\MS\Internal\Data\IndexedEnumerable.cs (1)
502
MethodInfo mi = srcType.
GetMethod
("IndexOf", new Type[] {typeof(object)});
src\Shared\MS\Internal\WindowsRuntime\ReflectionHelper.cs (5)
63
method = type.
GetMethod
(methodName, Type.EmptyTypes);
96
method = type.
GetMethod
(methodName, new Type[] { typeof(TArg) });
146
method = obj.GetType().
GetMethod
(methodName, Type.EmptyTypes);
178
method = obj.GetType().
GetMethod
(methodName, new Type[] { typeof(TArg1) });
232
method = obj.GetType().
GetMethod
(methodName, new Type[] { typeof(TArg1), typeof(TArg2) });
System (8)
compmod\system\componentmodel\EnumConverter.cs (1)
185
MethodInfo method = typeof(Enum).
GetMethod
("ToObject", new Type[] {typeof(Type), underlyingType});
compmod\system\componentmodel\MemberDescriptor.cs (1)
435
result = componentClass.
GetMethod
(name, args);
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (2)
1150
MethodInfo getMethod = providerType.
GetMethod
("Get" + provideAttr.PropertyName, new Type[] {receiverType});
1154
MethodInfo setMethod = providerType.
GetMethod
("Set" + provideAttr.PropertyName, new Type[] {receiverType, getMethod.ReturnType});
compmod\system\componentmodel\TimeSpanConverter.cs (1)
84
MethodInfo method = typeof(TimeSpan).
GetMethod
("Parse", new Type[] {typeof(string)});
compmod\system\componentmodel\TypeListConverter.cs (1)
96
MethodInfo method = typeof(Type).
GetMethod
("GetType", new Type[] {typeof(string)});
regex\system\text\regularexpressions\RegexCompiler.cs (2)
165
_chartolowerM = typeof(Char).
GetMethod
("ToLower", new Type[] {typeof(Char), typeof(CultureInfo)});
166
_getcharM = typeof(String).
GetMethod
("get_Chars", new Type[] {typeof(int)});
System.Activities (11)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (2)
157
MethodInfo genericCompileMethod = typeof(VisualBasicHelper).
GetMethod
("Compile", new Type[] { typeof(LocationReferenceEnvironment) });
272
MethodInfo genericCompileMethod = typeof(VisualBasicHelper).
GetMethod
("Compile", new Type[] { typeof(LocationReferenceEnvironment) });
System\Activities\Expressions\IndexerHelper.cs (2)
37
getMethod = typeof(TOperand).
GetMethod
("get_Item", getTypes);
49
setMethod = typeof(TOperand).
GetMethod
("set_Item", setTypes);
System\Activities\Expressions\MethodCallExpressionHelper.cs (1)
36
Expression.Call(typeof(Convert).
GetMethod
("ChangeType", new Type[] { typeof(object), typeof(Type) }), Expression.ArrayIndex(objectArray, Expression.Constant(i)), Expression.Constant(variable.Type, typeof(Type))),
System\Activities\ExpressionUtilities.cs (6)
42
static MethodInfo activityContextGetValueGenericMethod = typeof(ActivityContext).
GetMethod
("GetValue", new Type[] { typeof(LocationReference) });
43
static MethodInfo activityContextGetLocationGenericMethod = typeof(ActivityContext).
GetMethod
("GetLocation", new Type[] { typeof(LocationReference) });
44
static MethodInfo locationReferenceGetLocationMethod = typeof(LocationReference).
GetMethod
("GetLocation", new Type[] { typeof(ActivityContext) });
45
static MethodInfo argumentGetLocationMethod = typeof(Argument).
GetMethod
("GetLocation", new Type[] { typeof(ActivityContext) });
46
static MethodInfo variableGetMethod = typeof(Variable).
GetMethod
("Get", new Type[] { typeof(ActivityContext) });
47
static MethodInfo delegateArgumentGetMethod = typeof(DelegateArgument).
GetMethod
("Get", new Type[] { typeof(ActivityContext) });
System.Configuration (2)
System\Configuration\TypeUtil.cs (2)
137
ilGen.Emit(OpCodes.Call, typeof(Activator).
GetMethod
("CreateInstance", new Type[] { typeof(Type), typeof(bool) })); // stack = { retVal }
166
ilGen.Emit(OpCodes.Call, typeof(Delegate).
GetMethod
("CreateDelegate", new Type[] { typeof(Type), typeof(MethodInfo) })); // stack = { retVal }
System.Core (9)
Microsoft\Scripting\Actions\DynamicObject.cs (1)
524
typeof(string).
GetMethod
("Format", new Type[] {typeof(string), typeof(object[])}),
Microsoft\Scripting\Compiler\CompilerScope.cs (2)
202
lc.IL.Emit(OpCodes.Call, typeof(RuntimeOps).
GetMethod
("CreateRuntimeVariables", new[] { typeof(object[]), typeof(long[]) }));
208
lc.IL.Emit(OpCodes.Call, typeof(RuntimeOps).
GetMethod
("CreateRuntimeVariables", Type.EmptyTypes));
Microsoft\Scripting\Compiler\ILGen.cs (3)
515
il.Emit(OpCodes.Call, typeof(MethodBase).
GetMethod
("GetMethodFromHandle", new Type[] { typeof(RuntimeMethodHandle), typeof(RuntimeTypeHandle) }));
517
il.Emit(OpCodes.Call, typeof(MethodBase).
GetMethod
("GetMethodFromHandle", new Type[] { typeof(RuntimeMethodHandle) }));
881
MethodInfo mi = nullableType.
GetMethod
("GetValueOrDefault", System.Type.EmptyTypes);
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (1)
182
expr = Expression.Call(expr, expr.Type.
GetMethod
("Compile", new Type[0]));
Microsoft\Scripting\Compiler\LambdaCompiler.Lambda.cs (1)
104
_ilg.Emit(OpCodes.Callvirt, typeof(MethodInfo).
GetMethod
("CreateDelegate", new Type[] { typeof(Type), typeof(object) }));
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (1)
585
MethodInfo add = typeof(Dictionary<string, int>).
GetMethod
("Add", new[] { typeof(string), typeof(int) });
System.Data (3)
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
104
System.Reflection.MethodInfo method = typeof(Type).
GetMethod
("GetType", new Type[] {typeof(string)}); // change done for security review
fx\src\data\System\Data\SqlClient\SqlUtil.cs (2)
1854
typeof(SysTx.Transaction).
GetMethod
("EnlistPromotableSinglePhase", new Type[] {typeof(SysTx.IPromotableSinglePhaseNotification), typeof(Guid)}));
1857
typeof(SysTx.Transaction).
GetMethod
("SetDistributedTransactionIdentifier", new Type[] { typeof(SysTx.IPromotableSinglePhaseNotification), typeof(Guid) }));
System.Data.Entity (15)
System\Data\Common\Internal\Materialization\Translator.cs (1)
556
private static readonly MethodInfo IEqualityComparerOfString_Equals = typeof(IEqualityComparer<String>).
GetMethod
("Equals", new Type[] { typeof(string), typeof(string) });
System\Data\Objects\Internal\EntityProxyFactory.cs (14)
979
static readonly MethodInfo s_StringEquals = typeof(string).
GetMethod
("op_Equality", new Type[] { typeof(string), typeof(string) });
1051
static readonly MethodInfo s_EntityMemberChanging = typeof(IEntityChangeTracker).
GetMethod
("EntityMemberChanging", new Type[] { typeof(string) });
1052
static readonly MethodInfo s_EntityMemberChanged = typeof(IEntityChangeTracker).
GetMethod
("EntityMemberChanged", new Type[] { typeof(string) });
1053
static readonly MethodInfo s_CreateRelationshipManager = typeof(RelationshipManager).
GetMethod
("Create", new Type[] { typeof(IEntityWithRelationships) });
1055
static readonly MethodInfo s_GetRelatedReference = typeof(RelationshipManager).
GetMethod
("GetRelatedReference", new Type[] { typeof(string), typeof(string) });
1056
static readonly MethodInfo s_GetRelatedCollection = typeof(RelationshipManager).
GetMethod
("GetRelatedCollection", new Type[] { typeof(string), typeof(string) });
1057
static readonly MethodInfo s_GetRelatedEnd = typeof(RelationshipManager).
GetMethod
("GetRelatedEnd", new Type[] { typeof(string), typeof(string) });
1058
static readonly MethodInfo s_ObjectEquals = typeof(object).
GetMethod
("Equals", new Type[] { typeof(object), typeof(object) });
1061
static readonly MethodInfo s_Action_Invoke = typeof(Action<object>).
GetMethod
("Invoke", new Type[] { typeof(object) });
1062
static readonly MethodInfo s_Func_object_object_bool_Invoke = typeof(Func<object, object, bool>).
GetMethod
("Invoke", new Type[] { typeof(object), typeof(object) });
1278
MethodInfo op_inequality = propertyType.
GetMethod
("op_Inequality", new Type[] { propertyType, propertyType });
1617
MethodInfo getTypeFromHandle = typeof(Type).
GetMethod
("GetTypeFromHandle", new Type[] { typeof(RuntimeTypeHandle) });
1618
MethodInfo addValue = typeof(SerializationInfo).
GetMethod
("AddValue", new Type[] { typeof(string), typeof(object), typeof(Type) });
1619
MethodInfo getValue = typeof(SerializationInfo).
GetMethod
("GetValue", new Type[] { typeof(string), typeof(Type) });
System.Data.Linq (1)
SqlClient\Reader\ObjectReaderCompiler.cs (1)
2152
MethodInfo mi = nullableType.
GetMethod
("GetValueOrDefault", System.Type.EmptyTypes);
System.Data.Services (1)
System\Data\Services\Parsing\RequestQueryParser.cs (1)
1298
return left.Type.
GetMethod
(methodName, new Type[] { left.Type, right.Type });
System.Data.Services.Client (19)
System\Data\Services\Client\ALinq\ResourceBinder.cs (3)
1179
MethodInfo mi = typeof(string).
GetMethod
("Concat", new Type[] { typeof(string), typeof(string)});
1277
if (mce.Method == t.
GetMethod
("Expand", new Type[] { typeof(string) }))
1281
else if (mce.Method == t.
GetMethod
("AddQueryOption", new Type[] { typeof(string), typeof(object) }))
System\Data\Services\Client\ALinq\TypeSystem.cs (16)
50
expressionMethodMap.Add(typeof(string).
GetMethod
("Contains", new Type[] { typeof(string) }), @"substringof");
51
expressionMethodMap.Add(typeof(string).
GetMethod
("EndsWith", new Type[] { typeof(string) }), @"endswith");
52
expressionMethodMap.Add(typeof(string).
GetMethod
("StartsWith", new Type[] { typeof(string) }), @"startswith");
53
expressionMethodMap.Add(typeof(string).
GetMethod
("IndexOf", new Type[] { typeof(string) }), @"indexof");
54
expressionMethodMap.Add(typeof(string).
GetMethod
("Replace", new Type[] { typeof(string), typeof(string) }), @"replace");
55
expressionMethodMap.Add(typeof(string).
GetMethod
("Substring", new Type[] { typeof(int) }), @"substring");
56
expressionMethodMap.Add(typeof(string).
GetMethod
("Substring", new Type[] { typeof(int), typeof(int) }), @"substring");
57
expressionMethodMap.Add(typeof(string).
GetMethod
("ToLower", Type.EmptyTypes), @"tolower");
58
expressionMethodMap.Add(typeof(string).
GetMethod
("ToUpper", Type.EmptyTypes), @"toupper");
59
expressionMethodMap.Add(typeof(string).
GetMethod
("Trim", Type.EmptyTypes), @"trim");
72
expressionMethodMap.Add(typeof(Math).
GetMethod
("Round", new Type[] { typeof(double) }), @"round");
73
expressionMethodMap.Add(typeof(Math).
GetMethod
("Round", new Type[] { typeof(decimal) }), @"round");
74
expressionMethodMap.Add(typeof(Math).
GetMethod
("Floor", new Type[] { typeof(double) }), @"floor");
76
expressionMethodMap.Add(typeof(Math).
GetMethod
("Floor", new Type[] { typeof(decimal) }), @"floor");
78
expressionMethodMap.Add(typeof(Math).
GetMethod
("Ceiling", new Type[] { typeof(double) }), @"ceiling");
80
expressionMethodMap.Add(typeof(Math).
GetMethod
("Ceiling", new Type[] { typeof(decimal) }), @"ceiling");
System.Data.SqlXml (2)
System\Xml\Xsl\IlGen\GenerateHelper.cs (1)
421
MethodInfo methInfo = className.
GetMethod
(methName, args);
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
82
MethodInfo methInfo = className.
GetMethod
(methName, args);
System.Drawing (3)
commonui\System\Drawing\ColorConverter.cs (3)
305
member = typeof(Color).
GetMethod
("FromArgb", new Type[] {typeof(int), typeof(int), typeof(int), typeof(int)});
309
member = typeof(Color).
GetMethod
("FromName", new Type[] {typeof(string)});
313
member = typeof(Color).
GetMethod
("FromArgb", new Type[] {typeof(int), typeof(int), typeof(int)});
System.Runtime.Remoting (1)
metadata\wsdlwriter.cs (1)
2409
MethodInfo baseInfo = baseType.
GetMethod
(info.Name, types);
System.Runtime.Serialization (7)
System\Runtime\Serialization\CodeGenerator.cs (5)
46
stringFormat = typeof(string).
GetMethod
("Format", new Type[] { typeof(string), typeof(object[]) });
63
stringConcat2 = typeof(string).
GetMethod
("Concat", new Type[] { typeof(string), typeof(string) });
80
stringConcat3 = typeof(string).
GetMethod
("Concat", new Type[] { typeof(string), typeof(string), typeof(string) });
97
objectToString = typeof(object).
GetMethod
("ToString", new Type[0]);
131
arraySetValue = typeof(Array).
GetMethod
("SetValue", new Type[] { typeof(object), typeof(int) });
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
740
ilg.Call(typeof(RuntimeTypeHandle).
GetMethod
("Equals", new Type[] { typeof(RuntimeTypeHandle) }));
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
717
ilg.Call(typeof(RuntimeTypeHandle).
GetMethod
("Equals", new Type[] { typeof(RuntimeTypeHandle) }));
System.ServiceModel (3)
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
211
static readonly MethodInfo createGenericTaskMI = typeof(TaskCreator).
GetMethod
("CreateGenericTask", new Type[] { typeof(ServiceChannel), typeof(ProxyOperationRuntime), typeof(object[]) });
System\ServiceModel\Dispatcher\CodeGenerator.cs (2)
84
stringConcat2 = typeof(string).
GetMethod
("Concat", new Type[] { typeof(string), typeof(string) });
94
objectToString = typeof(object).
GetMethod
("ToString", new Type[0]);
System.ServiceModel.WasHosting (1)
System\ServiceModel\WasHosting\MetabaseSettingsIis7.cs (1)
403
getSectionMethod = type.
GetMethod
(
System.Web (5)
Compilation\CodeDOMUtility.cs (2)
183
if (valueType.
GetMethod
("Parse", new Type[] {typeof(string), typeof(CultureInfo)}) != null) {
202
else if (valueType.
GetMethod
("Parse", new Type[] {typeof(string)}) != null) {
UI\PropertyConverter.cs (2)
107
MethodInfo methodInfo = objType.
GetMethod
("Parse", s_parseMethodTypesWithSOP);
122
methodInfo = objType.
GetMethod
("Parse", s_parseMethodTypes);
Util\FactoryGenerator.cs (1)
80
_methodToOverride = factoryInterface.
GetMethod
("CreateInstance", new Type[0]);
System.Web.DataVisualization (1)
Common\Utilities\XmlSerializer.cs (1)
756
MethodInfo mi = list.GetType().
GetMethod
("IndexOf", new Type[] { typeof(String) });
System.Web.Extensions (7)
UI\BundleReflectionHelper.cs (3)
58
IsBundleVirtualPathMethod = MakeDelegate<IsBundleVirtualPathDelegate>(value, resolverType.
GetMethod
("IsBundleVirtualPath", args));
59
GetBundleContentsMethod = MakeDelegate<GetBundleContentsDelegate>(value, resolverType.
GetMethod
("GetBundleContents", args));
60
GetBundleUrlMethod = MakeDelegate<GetBundleUrlDelegate>(value, resolverType.
GetMethod
("GetBundleUrl", args));
UI\WebControls\Dynamic.cs (4)
388
gen.EmitCall(OpCodes.Callvirt, ct.
GetMethod
("Equals", new Type[] { ft, ft }), null);
411
gen.EmitCall(OpCodes.Callvirt, ct.
GetMethod
("GetHashCode", new Type[] { ft }), null);
1796
typeof(string).
GetMethod
("Concat", new[] { typeof(object), typeof(object) }),
1801
return left.Type.
GetMethod
(methodName, new[] { left.Type, right.Type });
System.Web.Mobile (1)
UI\MobileControls\DeviceSpecificChoice.cs (1)
336
containingTemplateControl.GetType().
GetMethod
(_deviceFilter,
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (1)
183
this.parseMethod = this.PropertyDescriptor.PropertyType.
GetMethod
("Parse", new Type[]{typeof(string), typeof(IFormatProvider)});
System.Windows.Forms.DataVisualization (1)
Common\Utilities\XmlSerializer.cs (1)
756
MethodInfo mi = list.GetType().
GetMethod
("IndexOf", new Type[] { typeof(String) });
System.WorkflowServices (2)
System\Workflow\Runtime\Hosting\ChannelManagerHelpers.cs (2)
289
this.createChannelMethodInfo = this.channelFactoryType.
GetMethod
("CreateChannel", new Type[0] { });
290
this.createChannelWithCustomAddressMethodInfo = this.channelFactoryType.
GetMethod
("CreateChannel", new Type[1] { typeof(EndpointAddress) });
System.Xml (8)
System\Xml\Serialization\CodeGenerator.cs (1)
667
Call(typeof(Array).
GetMethod
("SetValue", new Type[] { typeof(object), typeof(int) }));
System\Xml\Serialization\Models.cs (1)
249
this.checkShouldPersistMethodInfo = memberInfo.DeclaringType.
GetMethod
("ShouldSerialize" + memberInfo.Name, new Type[0]);
System\Xml\Serialization\Types.cs (4)
1113
MethodInfo enumerator = type.
GetMethod
("GetEnumerator", new Type[0]);
1144
MethodInfo addMethod = type.
GetMethod
("Add", new Type[] { currentType });
1148
addMethod = type.
GetMethod
("Add", new Type[] { currentType });
1193
MethodInfo addMethod = type.
GetMethod
("Add", new Type[] { indexer.PropertyType });
System\Xml\Serialization\XmlCodeExporter.cs (1)
357
MethodInfo format = formatter.
GetMethod
("To" + pm.TypeDesc.FormatterName, new Type[] {typeof(string)});
System\Xml\Serialization\XmlSchemaExporter.cs (1)
828
System.Reflection.MethodInfo format = formatter.
GetMethod
("ToString", new Type[] { pm.TypeDesc.Type });