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