15 references to MethodInfo
Microsoft.Interop.ComInterfaceGenerator (15)
ComInterfaceGenerator.cs (15)
469if (method.MethodInfo.IsUserDefinedShadowingMethod) 498if (a.MethodInfo.MethodName != b.MethodInfo.MethodName) 526writer.WriteLine($"public unsafe {functionPointerType.NormalizeWhitespace()} {inheritedMethod.MethodInfo.MethodName}_{inheritedMethod.GenerationContext.VtableIndexData.Index};"); 538writer.WriteLine($"public unsafe {functionPointerType.NormalizeWhitespace()} {declaredMethod.MethodInfo.MethodName}_{declaredMethod.GenerationContext.VtableIndexData.Index};"); 624writer.WriteLine($"Vtable.{declaredMethodContext.MethodInfo.MethodName}_{declaredMethodContext.GenerationContext.VtableIndexData.Index} = &ABI_{((SourceAvailableIncrementalMethodStubGenerationContext)declaredMethodContext.GenerationContext).StubMethodSyntaxTemplate.Identifier};"); 703writer.Write($"{inheritedStub.GenerationContext.SignatureContext.StubReturnType} {inheritedStub.OriginalDeclaringInterface.Info.Type.FullTypeName}.{inheritedStub.MethodInfo.MethodName}"); 862string accessorName = inheritedStub.MethodInfo.MethodName; 923bool isUnsafe = shadow.MethodInfo.Syntax is { } shadowedSyntax 930string accessorName = shadow.MethodInfo.MethodName; 947SequenceEqualImmutableArray<AttributeInfo> propAttrs = shadow.MethodInfo.AssociatedAttributes; 1002Debug.Assert(shadow.MethodInfo.AssociatedAttributes.Array.IsEmpty); 1009foreach (AttributeInfo attrInfo in shadow.MethodInfo.Attributes) 1014writer.Write($"new {(isUnsafe ? "unsafe " : "")}{sigContext.StubReturnType} {shadow.MethodInfo.MethodName}"); 1016string forwardingCall = $"(({shadow.OriginalDeclaringInterface.Info.Type.FullTypeName})this).{shadow.MethodInfo.MethodName}"