PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Literal­String Structure / Literal­String Operators and Type Conversions / Literal­String.​Equality Operator

LiteralString.Equality Operator

Determines whether two strings are equal.

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 bool operator ==(
	LiteralString left,
	LiteralString right
)

Parameters

left
Type: PostSharp.Sdk.CodeModel.LiteralString
A LiteralString.
right
Type: PostSharp.Sdk.CodeModel.LiteralString
A LiteralString.

Return Value

Type: Boolean
true if both strings are equal, otherwise false.
See Also