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)
C#
public char GetChar( int index )
Parameters
- index
- Type: System.Int32
The character position.
Return Value
Type: CharThe character at position index.
Exception | Condition |
---|---|
InvalidOperationException | The LiteralString is null. |