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

FixedString128Bytes.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 A string to compare for equality.

Returns

bool True if this string and the other have the same length and all the same characters.

Description

Returns true if this string and another have the same length and all the same characters.


Declaration

public bool Equals(FixedString32Bytes other);

Parameters

Parameter Description
other A FixedString32Bytes to compare for equality.

Returns

bool True if the two strings are equal.

Description

Returns true if this string and another string 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 A FixedString64Bytes to compare for equality.

Returns

bool True if the two strings are equal.

Description

Returns true if this string and another string 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 A FixedString128Bytes to compare for equality.

Returns

bool True if the two strings are equal.

Description

Returns true if this string and another string 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 A FixedString512Bytes to compare for equality.

Returns

bool True if the two strings are equal.

Description

Returns true if this string and another string 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 A FixedString4096Bytes to compare for equality.

Returns

bool True if the two strings are equal.

Description

Returns true if this string and another string are equal.

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


Declaration

public bool Equals(Object obj);

Parameters

Parameter Description
obj An object to compare for equality.

Returns

bool True if this string and the object are equal.

Description

Returns true if this string and an object are equal.

Returns false if the object is neither a System.String or a FixedString.

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