PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Literal­String Structure / Literal­String Properties / Literal­String.​Length Property

LiteralString.Length Property

Gets the string length.

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 int Length { get; }

Property Value

Type: Int32
The number of characters in the array.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe LiteralString is null.
See Also