PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Literal­String Structure / Literal­String Constructor / Literal­String Constructor (Char[])

LiteralString Constructor (Char[])

Initializes a new LiteralString from an array of characters.

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 LiteralString(
	char[] chars
)

Parameters

chars
Type: System.Char[]
An array of characters, or null to construct a null LiteralString.
Remarks
For performance reasons, the current constructor stores a reference to chars, i.e. does not take a copy of the array.
See Also