PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Formatters Namespace / Char­Span Structure / Char­Span Constructor / Char­Span Constructor (String, Int32, Int32)

CharSpan Constructor (String, Int32, Int32)

Initializes a new CharSpan from a String and specifies the start and lenght of the substring.

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
public CharSpan(
	string str,
	int start,
	int length
)

Parameters

str
Type: System.String
A string.
start
Type: System.Int32
The index of the first character of the span in str.
length
Type: System.Int32
The number of characters in the span.
See Also