7 private int m_NlsVersion;
25 m_NlsVersion = fullVersion;
28 internal SortVersion(
int nlsVersion,
int effectiveId,
Guid customVersion)
30 m_NlsVersion = nlsVersion;
34 byte h = (byte)((uint)effectiveId >> 24);
35 byte i = (byte)((effectiveId & 0xFF0000) >> 16);
36 byte j = (byte)((effectiveId & 0xFF00) >> 8);
37 byte k = (byte)(effectiveId & 0xFF);
38 customVersion =
new Guid(0, 0, 0, 0, 0, 0, 0, h, i, j, k);
40 m_SortId = customVersion;
47 public override bool Equals(
object obj)
50 if (sortVersion !=
null)
52 return Equals(sortVersion);
67 if (m_NlsVersion == other.m_NlsVersion)
69 return m_SortId == other.m_SortId;
88 return left?.
Equals(right) ?? right?.
Equals(left) ??
true;
98 return !(left == right);
int FullVersion
Gets the full version number of the T:System.Globalization.SortVersion object.
bool Equals(SortVersion other)
Returns a value that indicates whether this T:System.Globalization.SortVersion instance is equal to a...
Represents a globally unique identifier (GUID).To browse the .NET Framework source code for this type...
Provides information about the version of Unicode used to compare and order strings.
Converts base data types to an array of bytes, and an array of bytes to base data types.
SortVersion(int fullVersion, Guid sortId)
Creates a new instance of the T:System.Globalization.SortVersion class.
static bool operator==(SortVersion left, SortVersion right)
Indicates whether two T:System.Globalization.SortVersion instances are equal.
static bool operator !=(SortVersion left, SortVersion right)
Indicates whether two T:System.Globalization.SortVersion instances are not equal.
Guid SortId
Gets a globally unique identifier for this T:System.Globalization.SortVersion object.
override int GetHashCode()
Returns the hash code for this instance.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Specifies that the class can be serialized.
override int GetHashCode()
Returns a hash code for this instance.
static readonly Guid Empty
A read-only instance of the T:System.Guid structure whose value is all zeros.
override bool Equals(object obj)
Returns a value that indicates whether this T:System.Globalization.SortVersion instance is equal to a...
static byte [] GetBytes(bool value)
Returns the specified Boolean value as a byte array.