Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


operator !=(LocaleIdentifier, LocaleIdentifier)

Determines whether two identifiers have different culture codes.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Operator
  • Namespace: Unity.Localization
  • Assembly: UnityEngine.LocalizationRuntimeModule
public static bool operator !=(LocaleIdentifier a, LocaleIdentifier b)

Parameters

The first identifier to compare.

The second identifier to compare.

Returns

Type

Description

bool
true
if the identifiers have different culture codes, ignoring case; otherwise,
false
.

Remarks

The negation of the equality comparison; the comparison ignores case.
Compare two identifiers with the inequality operator.

Examples

using Unity.Localization;namespace Unity.Localization.Samples{ public class LocaleIdentifierInequalityOperatorExample { public bool Run(LocaleIdentifier a, LocaleIdentifier b) => a != b; }}