Lines Matching refs:GetMethod

82 			MethodInfo mi = typeof (MethodInfoTest).GetMethod ("foo");  in IsDefined_AttributeType_Null()
100 MethodInfo m = typeof (int[]).GetMethod ("Address"); in TestInvokeByRefReturnMethod()
115 …DllImportAttribute attr = (DllImportAttribute)((t.GetMethod ("dllImportMethod").GetCustomAttribute… in PseudoCustomAttributes()
132 …PreserveSigAttribute attr2 = (PreserveSigAttribute)((t.GetMethod ("preserveSigMethod").GetCustomAt… in PseudoCustomAttributes()
148 MethodInfo mi = typeof (MethodInfoTest).GetMethod ("ReturnTypeMarshalAs"); in ReturnTypePseudoCustomAttributes()
161 MethodInfo mi = typeof (MethodInfoTest).GetMethod ("foo"); in StaticInvokeWithObject()
169 MethodInfo met = typeof(MethodInfoTest).GetMethod ("ByRefTest"); in ByRefInvoke()
191 MethodInfo mi = typeof (MethodInfoTest).GetMethod ("ByrefVtype"); in ByrefVtypeInvoke()
224 MethodInfo method = typeof (MethodInfoTest).GetMethod ("AbortIt"); in InvokeThreadAbort()
245 this.GetType ().GetMethod ("HeyHey").ToString ()); in ToStringByRef()
252 this.GetType ().GetMethod ("SignatureTest").ToString ()); in ToStringArgList()
258 Assert.AreEqual ("Int32* PtrFunc(Int32*)", this.GetType ().GetMethod ("PtrFunc").ToString ()); in ToStringWithPointerSignatures()
275 this.GetType ().GetMethod ("PtrFunc2").ToString ()); in ToStringWithPointerSignaturesToNonPrimitiveType()
281 typeof (Array).GetMethod ("AsReadOnly").ToString ()); in ToStringGenericMethod()
297 …Assert.AreEqual (typeof (GBD_A), typeof (GBD_C).GetMethod ("f").GetBaseDefinition ().DeclaringType… in GetBaseDefinition()
298 …Assert.AreEqual (typeof (GBD_A), typeof (GBD_C).GetMethod ("f").GetBaseDefinition ().ReflectedType… in GetBaseDefinition()
300 …Assert.AreEqual (typeof (GBD_D), typeof (GBD_D).GetMethod ("f").GetBaseDefinition ().DeclaringType… in GetBaseDefinition()
301 …Assert.AreEqual (typeof (GBD_D), typeof (GBD_D).GetMethod ("f").GetBaseDefinition ().ReflectedType… in GetBaseDefinition()
303 …Assert.AreEqual (typeof (GBD_D), typeof (GBD_E).GetMethod ("f").GetBaseDefinition ().DeclaringType… in GetBaseDefinition()
304 …Assert.AreEqual (typeof (GBD_D), typeof (GBD_E).GetMethod ("f").GetBaseDefinition ().ReflectedType… in GetBaseDefinition()
306 …Assert.AreEqual (typeof (GBD_D), typeof (GBD_E2).GetMethod ("f").GetBaseDefinition ().DeclaringTyp… in GetBaseDefinition()
307 …Assert.AreEqual (typeof (GBD_D), typeof (GBD_E2).GetMethod ("f").GetBaseDefinition ().ReflectedTyp… in GetBaseDefinition()
309 …Assert.AreEqual (typeof (GBD_D), typeof (GBD_F).GetMethod ("f").GetBaseDefinition ().DeclaringType… in GetBaseDefinition()
310 …Assert.AreEqual (typeof (GBD_D), typeof (GBD_F).GetMethod ("f").GetBaseDefinition ().ReflectedType… in GetBaseDefinition()
335 var mi1 = t.GetMethod ("f1"); in GetBaseDefinition_OpenConstructedBaseType()
340 var mi2 = t.GetMethod ("f2"); in GetBaseDefinition_OpenConstructedBaseType()
362 …MethodInfo inheritedMethod = typeof(TestInheritedMethodB).GetMethod("TestMethod", BindingFlags.Ins… in InheritanceTestGetMethodTest()
363 …MethodInfo baseMethod = typeof(TestInheritedMethodB).GetMethod("TestMethod", BindingFlags.Instance… in InheritanceTestGetMethodTest()
366 …MethodInfo inheritedMethod2 = typeof(TestInheritedMethodB).GetMethod("TestMethod2", BindingFlags.I… in InheritanceTestGetMethodTest()
367 …MethodInfo baseMethod2 = typeof(TestInheritedMethodB).GetMethod("TestMethod2", BindingFlags.Instan… in InheritanceTestGetMethodTest()
374 MethodBody mb = typeof (InterfaceTest).GetMethod ("Clone").GetMethodBody (); in GetMethodBody_Abstract()
381 MethodBody mb = typeof (AsyncCallback).GetMethod ("Invoke").GetMethodBody (); in GetMethodBody_Runtime()
388 MethodBody mb = typeof (MethodInfoTest).GetMethod ("dllImportMethod").GetMethodBody (); in GetMethodBody_Pinvoke()
419 MethodBody mb = typeof (MethodInfoTest).GetMethod ("locals_method").GetMethodBody (); in GetMethodBody()
466 ParameterInfo pi = typeof (MethodInfoTest).GetMethod ("return_parameter_test").ReturnParameter; in ReturnParameter()
477 MethodInfo me = type.GetMethod ("return_parameter_test"); in MethodInfoModule()
487 MethodInfo m = t.GetMethod ("RefOnlyMethod", BindingFlags.Static | BindingFlags.NonPublic); in InvokeOnRefOnlyAssembly()
503 MethodInfo mi = typeof (MethodInfoTest).GetMethod ("ThrowMethod"); in InvokeInvalidOpExceptionThrow()
517 MethodInfo method = typeof (MethodInfoTest).GetMethod ("Go"); in InvokeGenericVtype()
536 MethodInfo mi = typeof (MethodInfoTest).GetMethod ("GenericRefMethod"); in InvokeGenericInst()
561 MethodInfo gmi = this.GetType ().GetMethod ( in MakeGenericMethodArgsMismatch()
583 MethodInfo gmi = this.GetType ().GetMethod ("SimpleGenericMethod"); in MakeGenericMethodWithNullArray()
598 MethodInfo gmi = this.GetType ().GetMethod ("SimpleGenericMethod"); in MakeGenericMethodWithNullValueInTypesArray()
613 MethodInfo gmi = this.GetType ().GetMethod ("SimpleGenericMethod"); in MakeGenericMethodWithNonGenericMethodDefinitionMethod()
633 MethodInfo gmi = this.GetType ().GetMethod ("SimpleGenericMethod2"); in MakeGenericMethodWithSreTypeResultsInStupidMethodInfo()
649 MethodInfo mi = typeof (MethodInfoTest).GetMethod ("pass_nullable"); in NullableTests()
667 MethodInfo mi = typeof (MethodInfoTest).GetMethod ("foo_generic"); in IsGenericMethod()
671 MethodInfo mi3 = typeof (GenericHelper<int>).GetMethod ("Test"); in IsGenericMethod()
697 …Assert.IsTrue (typeof (A<int>).GetGenericTypeDefinition ().GetMethod ("Bar").ContainsGenericParame… in ContainsGenericParameters()
699 Assert.IsTrue (typeof (A<int>).GetMethod ("Foo").ContainsGenericParameters); in ContainsGenericParameters()
701 Assert.IsFalse (typeof (A<int>).GetMethod ("Bar").ContainsGenericParameters); in ContainsGenericParameters()
703 …Assert.IsFalse (typeof (A<int>).GetMethod ("Foo").MakeGenericMethod (new Type [] { typeof (int) })… in ContainsGenericParameters()
705 Assert.IsFalse (typeof (A<int>.B).GetMethod ("Baz").ContainsGenericParameters); in ContainsGenericParameters()
707 …Assert.IsTrue (typeof (A<int>.B).GetGenericTypeDefinition ().GetMethod ("Baz").ContainsGenericPara… in ContainsGenericParameters()
713 MethodInfo m1 = typeof (A<>).GetMethod ("Foo"); in IsGenericMethodDefinition()
717 MethodInfo m2 = typeof (A<int>).GetMethod ("Foo"); in IsGenericMethodDefinition()
729 MethodInfo mi1 = typeof (MyList<>).GetMethod ("ConvertAll"); in GetGenericMethodDefinition()
730 MethodInfo mi2 = typeof (MyList<int>).GetMethod ("ConvertAll"); in GetGenericMethodDefinition()
758 var method = typeof (MethodInfoTest).GetMethod ("TestMethod123"); in GetParametersDontReturnInternedArray()
769 MethodInfo gmd = (typeof (MyList <int>)).GetMethod ("ConvertAll"); in Bug354757()
781 var m = typeof (MethodInfoTest).GetMethod ("TestMethod"); in MakeGenericMethodRespectConstraints()
827 var m0 = typeof (IMethodInvoke<object>).GetMethod ("Test"); in GetInterfaceMapWorksWithVariantIfaces()
828 var m1 = typeof (IMethodInvoke<string>).GetMethod ("Test"); in GetInterfaceMapWorksWithVariantIfaces()
844 var m = GetType ().GetMethod ("Bug12856"); in MethodToStringShouldPrintFullNameOfGenericStructs()
852 MethodInfo mi = typeof (TestInheritedMethodB).GetMethod ("TestMethod2"); in GetReflectedType()
858 mi = typeof (DerivedFromGenericBase).GetMethod ("f2"); in GetReflectedType()
864 mi = typeof (GenericMid<,>).GetMethod ("f2"); in GetReflectedType()
870 mi = typeof (GenericMid<int,int>).GetMethod ("f2"); in GetReflectedType()
897 var typeofK = typeof (GenericClass<>).GetMethod ("Method2").GetGenericArguments () [0]; in TestLocalVariableTypes()
899 …var type = typeof (GenericClass<>).GetMethod("Method").GetMethodBody().LocalVariables[0].LocalType; in TestLocalVariableTypes()
906 MethodBody mb = typeof (GenericClass<>).GetMethod("Method2").GetMethodBody(); in TestLocalVariableTypes()
925 mb = typeof (GenericClass<int>).GetMethod("Method2").GetMethodBody(); in TestLocalVariableTypes()