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

LiteralString.Inequality Operator

Determines whether two strings are different.

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 different, otherwise false.
See Also