Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CompareTo

Returns the lexicographical sort order of this string relative to another.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

CompareTo(string)

Returns the lexicographical sort order of this string relative to another.
[ExcludeFromBurstCompatTesting("Takes managed string")]public int CompareTo(string other)

Parameters

other

A
System.String
to compare with.

Returns

Type

Description

intAn integer denoting the lexicographical sort order of this string relative to the other:

CompareTo(FixedString32Bytes)

Returns the lexicographical sort order of this string relative to another.
public int CompareTo(FixedString32Bytes other)

Parameters

A string to compare with.

Returns

Type

Description

intA number denoting the lexicographical sort order of this string relative to the other:

CompareTo(FixedString64Bytes)

Returns the lexicographical sort order of this string relative to another.
public int CompareTo(FixedString64Bytes other)

Parameters

A string to compare with.

Returns

Type

Description

intA number denoting the lexicographical sort order of this string relative to the other:

CompareTo(FixedString128Bytes)

Returns the lexicographical sort order of this string relative to another.
public int CompareTo(FixedString128Bytes other)

Parameters

A string to compare with.

Returns

Type

Description

intA number denoting the lexicographical sort order of this string relative to the other:

CompareTo(FixedString512Bytes)

Returns the lexicographical sort order of this string relative to another.
public int CompareTo(FixedString512Bytes other)

Parameters

A string to compare with.

Returns

Type

Description

intA number denoting the lexicographical sort order of this string relative to the other:

CompareTo(FixedString4096Bytes)

Returns the lexicographical sort order of this string relative to another.
public int CompareTo(FixedString4096Bytes other)

Parameters

A string to compare with.

Returns

Type

Description

intA number denoting the lexicographical sort order of this string relative to the other: