Show / Hide Table of Contents

    Class StringBuffer

    A type like StringBuilder but only do concat.

    Inheritance
    Object
    StringBuffer
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace:Microsoft.DocAsCode.MarkdownLite
    Assembly:Microsoft.DocAsCode.MarkdownLite.dll
    Syntax
    public sealed class StringBuffer

    Fields

    Empty

    An empty StringBuffer.

    Declaration
    public static readonly StringBuffer Empty
    Field Value
    Type Description
    StringBuffer

    Methods

    Append(String)

    Append string to string buffer. (Create new instance if self is Empty, otherwise, modify self).

    Declaration
    public StringBuffer Append(string str)
    Parameters
    Type Name Description
    String str

    The string.

    Returns
    Type Description
    StringBuffer

    The string buffer.

    Clone()

    Declaration
    public StringBuffer Clone()
    Returns
    Type Description
    StringBuffer

    Concat(StringBuffer)

    Concat another string buffer. (Create new instance if self is Empty, otherwise, modify self).

    Declaration
    public StringBuffer Concat(StringBuffer another)
    Parameters
    Type Name Description
    StringBuffer another

    The string buffer.

    Returns
    Type Description
    StringBuffer

    The string buffer.

    EndsWith(Char)

    Declaration
    public bool EndsWith(char character)
    Parameters
    Type Name Description
    Char character
    Returns
    Type Description
    Boolean

    EndsWith(String)

    Declaration
    public bool EndsWith(string text)
    Parameters
    Type Name Description
    String text
    Returns
    Type Description
    Boolean

    GetLength()

    Declaration
    public int GetLength()
    Returns
    Type Description
    Int32

    StartsWith(Char)

    Declaration
    public bool StartsWith(char character)
    Parameters
    Type Name Description
    Char character
    Returns
    Type Description
    Boolean

    StartsWith(String)

    Declaration
    public bool StartsWith(string text)
    Parameters
    Type Name Description
    String text
    Returns
    Type Description
    Boolean

    Substring(Int32, Int32)

    Declaration
    public StringBuffer Substring(int startIndex, int maxCount)
    Parameters
    Type Name Description
    Int32 startIndex
    Int32 maxCount
    Returns
    Type Description
    StringBuffer

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    Operators

    Addition(StringBuffer, StringBuffer)

    Declaration
    public static StringBuffer operator +(StringBuffer buffer, StringBuffer another)
    Parameters
    Type Name Description
    StringBuffer buffer
    StringBuffer another
    Returns
    Type Description
    StringBuffer

    Addition(StringBuffer, String)

    Declaration
    public static StringBuffer operator +(StringBuffer buffer, string value)
    Parameters
    Type Name Description
    StringBuffer buffer
    String value
    Returns
    Type Description
    StringBuffer

    Implicit(StringBuffer to String)

    Declaration
    public static implicit operator string (StringBuffer buffer)
    Parameters
    Type Name Description
    StringBuffer buffer
    Returns
    Type Description
    String

    Implicit(String to StringBuffer)

    Declaration
    public static implicit operator StringBuffer(string value)
    Parameters
    Type Name Description
    String value
    Returns
    Type Description
    StringBuffer

    Extension Methods

    JsonUtility.ToJsonString(Object, Formatting, JsonSerializer)
    Back to top Copyright © 2015-2017 Microsoft
    Generated by DocFX