示例#1
0
 public static IEventSymbol OverrideEvent(
     this SyntaxGenerator codeFactory,
     IEventSymbol overriddenEvent,
     DeclarationModifiers modifiers,
     INamedTypeSymbol newContainingType)
 {
     return(CodeGenerationSymbolFactory.CreateEventSymbol(
                overriddenEvent,
                attributes: default(ImmutableArray <AttributeData>),
                accessibility: overriddenEvent.ComputeResultantAccessibility(newContainingType),
                modifiers: modifiers,
                explicitInterfaceImplementations: default,
 public static IEventSymbol OverrideEvent(
     this SyntaxGenerator codeFactory,
     IEventSymbol overriddenEvent,
     DeclarationModifiers modifiers,
     INamedTypeSymbol newContainingType)
 {
     return(CodeGenerationSymbolFactory.CreateEventSymbol(
                overriddenEvent,
                attributes: null,
                accessibility: overriddenEvent.ComputeResultantAccessibility(newContainingType),
                modifiers: modifiers,
                explicitInterfaceSymbol: null,
                name: overriddenEvent.Name));
 }
 public static IEventSymbol OverrideEvent(
     this SyntaxGenerator codeFactory,
     IEventSymbol overriddenEvent,
     DeclarationModifiers modifiers,
     INamedTypeSymbol newContainingType)
 {
     return CodeGenerationSymbolFactory.CreateEventSymbol(
         overriddenEvent,
         attributes: null,
         accessibility: overriddenEvent.ComputeResultantAccessibility(newContainingType),
         modifiers: modifiers,
         explicitInterfaceSymbol: null,
         name: overriddenEvent.Name);
 }