48 references to GetMethod
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (16)
Attributes\AttributeTests_Synthesized.vb (2)
277Dim baseWrapper = m.ContainingAssembly.GetTypeByMetadataName("D").GetMethod("$VB$ClosureStub_GetIntAsync_MyBase") 333Dim baseWrapper = m.ContainingAssembly.GetTypeByMetadataName("Derived").GetMethod("$VB$ClosureStub_GetAsync_MyBase")
Attributes\AttributeTests_WellKnownAttributes.vb (11)
5510Dim gooMethod = type.GetMethod("goo") 5513Dim mainMethod = type.GetMethod("Main") 5541Dim gooMethod = type.GetMethod("goo") 5544Dim mainMethod = type.GetMethod("Main") 5575Dim gooMethod = type.GetMethod("goo") 5578Dim mainMethod = type.GetMethod("Main") 5584Dim gooMethod = type.GetMethod("goo") 5587Dim mainMethod = type.GetMethod("Main") 5618Dim gooMethod = type.GetMethod("goo") 5621Dim mainMethod = type.GetMethod("Main") 7056Dim attribute = [module].ContainingAssembly.GetTypeByMetadataName("Program").GetMethod("Test").Parameters.Single().GetAttributes().Single()
Emit\EmitMetadata.vb (2)
781Dim ctor = type.GetMethod(".ctor") 803Dim cctor = type.GetMethod(".cctor")
Emit\NoPiaEmbedTypes.vb (1)
1179Dim ctor = DirectCast(test11.GetMethod(".ctor"), PEMethodSymbol)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (32)
SymbolsTests\AnonymousDelegates\AnonymousDelegates_CreationAndEmit.vb (4)
306Assert.Equal(MethodKind.Constructor, x16.GetMethod(".ctor").MethodKind) 307Assert.Equal("Sub <generated method>..ctor(TargetObject As System.Object, TargetMethod As System.IntPtr)", x16.GetMethod(".ctor").ToTestDisplayString()) 323Assert.Equal("Sub <generated method>..ctor(TargetObject As System.Object, TargetMethod As System.IntPtr)", x15.GetMethod(".ctor").ToTestDisplayString()) 399Assert.Equal("Sub <generated method>..ctor(TargetObject As System.Object, TargetMethod As System.IntPtr)", x2.GetMethod(".ctor").ToTestDisplayString())
SymbolsTests\AttributeTests_UnmanagedCallersOnly.vb (4)
134Dim m1 = c.GetMethod("M1") 255Dim m1 = c.GetMethod("M1") 385Dim add = c.GetMethod("op_Addition") 433Dim plus = c.GetMethod("op_UnaryPlus")
SymbolsTests\Metadata\PE\LoadCustomModifiers.vb (1)
177Dim badTypeParameter = compilation.GetTypeByMetadataName("TestRef").GetMethod("M").TypeParameters.Single()
SymbolsTests\Metadata\PE\LoadingAttributes.vb (3)
1401Dim m1Parameters = class1.GetMethod("M1").Parameters.Cast(Of PEParameterSymbol) 1530Dim m1Parameters = class1.GetMethod("M1").Parameters.Cast(Of PEParameterSymbol) 1561Dim m1Parameters = class1.GetMethod("M1").Parameters.Cast(Of PEParameterSymbol)
SymbolsTests\Retargeting\RetargetingTests.vb (20)
98CheckMethods(sourceType.GetMethod(".cctor"), retargetingType.GetMethod(".cctor")) 99CheckMethods(sourceType.GetMethod(".ctor"), retargetingType.GetMethod(".ctor")) 126CheckMethods(sourceType.GetMethod(".cctor"), retargetingType.GetMethod(".cctor")) 127CheckMethods(sourceType.GetMethod(".ctor"), retargetingType.GetMethod(".ctor")) 966CheckMethods(sourceType.GetMethod(".ctor"), retargetingType.GetMethod(".ctor")) 1510CheckMethods(sourceType.GetMethod(".ctor"), retargetingType.GetMethod(".ctor")) 1520CheckMethods(sourceType.GetMethod(".ctor"), retargetingType.GetMethod(".ctor")) 1530CheckMethods(sourceType.GetMethod(".ctor"), retargetingType.GetMethod(".ctor")) 1713CheckMethods(sourceType.GetMethod(".ctor"), retargetingType.GetMethod(".ctor")) 3256Dim m = c2.GetMethod("M") 3258Assert.Equal(c2.Interfaces().Single().GetMethod("M"), m.ExplicitInterfaceImplementations.Single())