Ejemplo n.º 1
0
 public virtual void VisitPropertyDeclaration(PropertyDeclarationSyntax node)
 {
     DefaultVisit(node);
 }
Ejemplo n.º 2
0
        public static PropertyDeclarationSyntax PropertyDeclaration(IEnumerable<AttributeListSyntax> attributeLists = null, Modifiers modifiers = default(Modifiers), string type = null, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier = null, string identifier = null, AccessorListSyntax accessorList = null)
        {
            var result = new PropertyDeclarationSyntax();

            if (attributeLists != null)
                result.AttributeLists.AddRange(attributeLists);
            result.Modifiers = modifiers;
            if (type != null)
                result.Type = ParseName(type);
            result.ExplicitInterfaceSpecifier = explicitInterfaceSpecifier;
            result.Identifier = identifier;
            result.AccessorList = accessorList;

            return result;
        }
Ejemplo n.º 3
0
        public static PropertyDeclarationSyntax PropertyDeclaration(string type = null, string identifier = null)
        {
            var result = new PropertyDeclarationSyntax();

            if (type != null)
                result.Type = ParseName(type);
            result.Identifier = identifier;

            return result;
        }
Ejemplo n.º 4
0
        public static PropertyDeclarationSyntax PropertyDeclaration(TypeSyntax type = null, string identifier = null)
        {
            var result = new PropertyDeclarationSyntax();

            result.Type = type;
            result.Identifier = identifier;

            return result;
        }