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
valuestringThe string value to wrap.
StringBuilderString(StringBuilder)
Initializes a new instance wrapping a StringBuilder.
public StringBuilderString(StringBuilder value)
Parameters
valueStringBuilderThe StringBuilder to wrap.
Properties
this[int]
Gets or sets the character at the specified index.
public char this[int index] { get; set; }
Parameters
indexintThe zero-based index.
Property Value
Length
The length of the underlying string or StringBuilder.
public int Length { get; set; }
Property Value
Methods
IsNullOrWhiteSpace()
Checks whether the underlying value is null or whitespace.
public bool IsNullOrWhiteSpace()