CharSpan Structure |
Namespace: PostSharp.Patterns.Formatters
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.19.0 (6.5.19.0)
C#
public readonly struct CharSpan
The CharSpan type exposes the following members.
Name | Description | |
---|---|---|
CharSpan(String) |
Initializes a new CharSpan from a String, and takes the whole string.
| |
CharSpan(Char[], Int32, Int32) |
Initializes a new CharSpan from an array of Char.
| |
CharSpan(String, Int32, Int32) |
Initializes a new CharSpan from a String and specifies the start and lenght of the substring.
|
Name | Description | |
---|---|---|
IsNull |
Determines whether the current instance represents a null string.
| |
Length |
Gets the number of Char in the span.
|
Name | Description | |
---|---|---|
FromArraySegment |
Converts a String into a CharSpan.
| |
FromString |
Converts a String into a CharSpan.
| |
ToCharArraySegment | ||
ToString | Returns the fully qualified type name of this instance. (Overrides ValueType.ToString().) |
Name | Description | |
---|---|---|
Implicit(ArraySegment<Char> to CharSpan) |
Converts an ArraySegment<T> into a CharSpan.
| |
Implicit(String to CharSpan) |
Converts a String into a CharSpan.
|