Class CharSpan
Namespace: PostSharp.Patterns.Formatters
Assembly: PostSharp.Patterns.Common.dll
Syntax
public sealed class CharSpan : ValueType
Constructors
Name | Description |
---|---|
CharSpan(Char[], Int32, Int32) | |
CharSpan(String) | Initializes a new CharSpan from a String, and takes the whole string. |
CharSpan(String, Int32, Int32) | Initializes a new CharSpan from a String and specifies the start and lenght of the substring. |
Properties
Name | Description |
---|---|
IsBackedByCharArray | Determines whether the current CharSpan is backed by a |
IsNull | Determines whether the current instance represents a null string. |
Length | Gets the number of Char in the span. |
Methods
Name | Description |
---|---|
FromArraySegment(ArraySegment<Char>) | |
FromString(String) | |
ToCharArraySegment() | Converts the current CharSpan into an ArraySegment<T> of Char.
When the IsBackedByCharArray or IsNull property is |
ToString() | Returns the fully qualified type name of this instance. |
Operators
Name | Description |
---|---|
Implicit(ArraySegment<Char> to CharSpan) | Converts an ArraySegment<T> into a CharSpan. |
Implicit(String to CharSpan) |