Show / Hide Table of Contents

Class StringBuilderTextOutputProvider

Implementation of ITextOutputProvider that wraps a StringBuilder. This is helpful for checking output during unit testing or for implementing a user interface that could call this command

Inheritance
object
StringBuilderTextOutputProvider
Implements
ITextOutputProvider
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Benday.CommandsFramework
Assembly: Benday.CommandsFramework.dll
Syntax
public class StringBuilderTextOutputProvider : ITextOutputProvider

Constructors

| Edit this page View Source

StringBuilderTextOutputProvider()

Declaration
public StringBuilderTextOutputProvider()

Methods

| Edit this page View Source

GetOutput()

Get the output from the string builder

Declaration
public string GetOutput()
Returns
Type Description
string
| Edit this page View Source

Write(string)

Write text to output without an ending newline

Declaration
public void Write(string message)
Parameters
Type Name Description
string message
| Edit this page View Source

WriteLine()

Write a new line

Declaration
public void WriteLine()
| Edit this page View Source

WriteLine(string)

Write a line of text

Declaration
public void WriteLine(string line)
Parameters
Type Name Description
string line

Implements

ITextOutputProvider
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com