/// <summary> /// Gets the command text. /// </summary> /// <returns>The command text.</returns> public string GetCommandText(ICommand command, CommandOptions options = null) { if (options == null) { options = new CommandOptions(); } StringWriter writer = new StringWriter(); FormattingVisitor visitor = new FormattingVisitor(writer, options); visitor.Visit(command); return writer.ToString(); }
/// <summary> /// Gets the command text. /// </summary> /// <returns>The command text.</returns> public string GetCommandText(ICommand command, CommandOptions options = null) { if (options == null) { options = new CommandOptions(); } StringWriter writer = new StringWriter(); FormattingVisitor visitor = new FormattingVisitor(writer, options); visitor.Visit(command); return(writer.ToString()); }