Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

NativeText.ReadOnly.Equals

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public bool Equals(string other);

Parameters

Parameter Description
other Another string to compare with.

Returns

bool True if the two strings are equal.

Description

Returns true if this string and another are equal.

Two strings are equal if they have equal length and all their characters match.


Declaration

public bool Equals(ReadOnly other);

Parameters

Parameter Description
other Another string to compare with.

Returns

bool True if the two strings are equal.

Description

Returns true if this string and another are equal.

Two strings are equal if they have equal length and all their characters match.


Declaration

public bool Equals(NativeText other);

Parameters

Parameter Description
other Another string to compare with.

Returns

bool True if the two strings are equal.

Description

Returns true if this string and another are equal.

Two strings are equal if they have equal length and all their characters match.


Declaration

public bool Equals(FixedString32Bytes other);

Parameters

Parameter Description
other Another string to compare with.

Returns

bool True if the two strings are equal.

Description

Returns true if this string and another are equal.

Two strings are equal if they have equal length and all their characters match.


Declaration

public bool Equals(FixedString64Bytes other);

Parameters

Parameter Description
other Another string to compare with.

Returns

bool True if the two strings are equal.

Description

Returns true if this string and another are equal.

Two strings are equal if they have equal length and all their characters match.


Declaration

public bool Equals(FixedString128Bytes other);

Parameters

Parameter Description
other Another string to compare with.

Returns

bool True if the two strings are equal.

Description

Returns true if this string and another are equal.

Two strings are equal if they have equal length and all their characters match.


Declaration

public bool Equals(FixedString512Bytes other);

Parameters

Parameter Description
other Another string to compare with.

Returns

bool True if the two strings are equal.

Description

Returns true if this string and another are equal.

Two strings are equal if they have equal length and all their characters match.


Declaration

public bool Equals(FixedString4096Bytes other);

Parameters

Parameter Description
other Another string to compare with.

Returns

bool True if the two strings are equal.

Description

Returns true if this string and another are equal.

Two strings are equal if they have equal length and all their characters match.


Declaration

public bool Equals(Object other);

Parameters

Parameter Description
other Another string to compare with.

Returns

bool True if this string and the object are equal.

Description

Returns true if this string and another object are equal.

For the object to be equal, it must itself be a managed string, NativeText, or FixedString"N"Bytes.

Two strings are equal if they have equal length and all their characters match.