Table of Contents

Class StringBuilderString

Namespace
SunamoShared
Assembly
SunamoShared.dll

Wrapper that provides unified access to either a string or StringBuilder.

public class StringBuilderString
Inheritance
StringBuilderString
Inherited Members
Extension Methods

Constructors

StringBuilderString(string)

Initializes a new instance wrapping a string value.

public StringBuilderString(string value)

Parameters

value string

The string value to wrap.

StringBuilderString(StringBuilder)

Initializes a new instance wrapping a StringBuilder.

public StringBuilderString(StringBuilder value)

Parameters

value StringBuilder

The StringBuilder to wrap.

Properties

this[int]

Gets or sets the character at the specified index.

public char this[int index] { get; set; }

Parameters

index int

The zero-based index.

Property Value

char

Length

The length of the underlying string or StringBuilder.

public int Length { get; set; }

Property Value

int

Methods

IsNullOrWhiteSpace()

Checks whether the underlying value is null or whitespace.

public bool IsNullOrWhiteSpace()

Returns

bool