PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Literal­String Structure / Literal­String Operators and Type Conversions / Literal­String Implicit Conversion (String to Literal­String)

LiteralString Implicit Conversion (String to LiteralString)

Converts a String to a LiteralString.

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 static implicit operator LiteralString (
	string text
)

Parameters

text
Type: System.String
A string, or null to construct a null LiteralString.

Return Value

Type: LiteralString
A LiteralString.
See Also