PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Literal­String Structure / Literal­String Methods / Literal­String.​Get­Char Method

LiteralString.GetChar Method

Gets a character given its position.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public char GetChar(
	int index
)

Parameters

index
Type: System.Int32
The character position.

Return Value

Type: Char
The character at position index.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe LiteralString is null.
See Also