Ejemplo n.º 1
0
        internal static IEventSymbol GeneratePropertyChangedEvent(CommonCompilation compilation)
        {
            var propertyChangedEventHandlerType = compilation.GetTypeByMetadataName("System.ComponentModel.PropertyChangedEventHandler");

            return(SymbolFactory.CreateEvent(
                       attributes: null,
                       accessibility: CommonAccessibility.Public,
                       modifiers: new SymbolModifiers(),
                       type: propertyChangedEventHandlerType,
                       explicitInterfaceSymbolOpt: null,
                       name: "PropertyChanged"));
        }