21 private const string CompareInfoName =
"CompareInfo";
47 string name = enumerator.
Name;
48 if (name ==
"CompareInfo")
78 if (m_compareInfo !=
null)
80 string text = a as string;
81 string text2 = b as string;
82 if (text !=
null && text2 !=
null)
84 return m_compareInfo.Compare(text, text2);
88 if (comparable !=
null)
90 return comparable.CompareTo(b);
93 if (comparable2 !=
null)
95 return -comparable2.CompareTo(a);
112 if (m_compareInfo !=
null)
114 info.AddValue(
"CompareInfo", m_compareInfo);
static CultureInfo InvariantCulture
Gets the T:System.Globalization.CultureInfo object that is culture-independent (invariant).
Compares two objects for equivalence, where string comparisons are case-sensitive.
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
virtual CompareInfo? CompareInfo
Gets the T:System.Globalization.CompareInfo that defines how to compare strings for the culture.
void GetObjectData(SerializationInfo info, StreamingContext context)
Populates a T:System.Runtime.Serialization.SerializationInfo object with the data required for serial...
int Compare(object a, object b)
Performs a case-sensitive comparison of two objects of the same type and returns a value indicating w...
Comparer(CultureInfo culture)
Initializes a new instance of the T:System.Collections.Comparer class using the specified T:System....
Describes the source and destination of a given serialized stream, and provides an additional caller-...
Defines a generalized type-specific comparison method that a value type or class implements to order ...
Provides information about, and means to manipulate, the current environment and platform....
static readonly Comparer Default
Represents an instance of T:System.Collections.Comparer that is associated with the P:System....
Implements a set of methods for culture-sensitive string comparisons.
Exposes a method that compares two objects.
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
static CultureInfo CurrentCulture
Gets or sets the T:System.Globalization.CultureInfo object that represents the culture used by the cu...
The exception that is thrown when one of the arguments provided to a method is not valid.
Allows an object to control its own serialization and deserialization.
Specifies that the class can be serialized.
string Name
Gets the name for the item currently being examined.
Provides information about a specific culture (called a locale for unmanaged code development)....
Provides a formatter-friendly mechanism for parsing the data in T:System.Runtime.Serialization....
static readonly Comparer DefaultInvariant
Represents an instance of T:System.Collections.Comparer that is associated with P:System....
bool MoveNext()
Updates the enumerator to the next item.