Exemplo n.º 1
0
 public virtual void VisitTryStatement(TryStatementSyntax node)
 {
     DefaultVisit(node);
 }
Exemplo n.º 2
0
        public static TryStatementSyntax TryStatement(params CatchClauseSyntax[] catches)
        {
            var result = new TryStatementSyntax();

            if (catches != null)
                result.Catches.AddRange(catches);

            return result;
        }
Exemplo n.º 3
0
        public static TryStatementSyntax TryStatement(BlockSyntax block = null, IEnumerable<CatchClauseSyntax> catches = null, FinallyClauseSyntax @finally = null)
        {
            var result = new TryStatementSyntax();

            result.Block = block;
            if (catches != null)
                result.Catches.AddRange(catches);
            result.Finally = @finally;

            return result;
        }
Exemplo n.º 4
0
        public static TryStatementSyntax TryStatement(IEnumerable<CatchClauseSyntax> catches = null)
        {
            var result = new TryStatementSyntax();

            if (catches != null)
                result.Catches.AddRange(catches);

            return result;
        }
Exemplo n.º 5
0
 public virtual void VisitTryStatement(TryStatementSyntax node)
 {
     DefaultVisit(node);
 }