You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Provides a base class for alphanumeric comparison.
34
-
/// </summary>
35
-
/// <remarks>
36
-
/// Although this type can be serialized, but <see cref="ISerializable"/> is
37
-
/// missing as this led to conflicts in some cases where it was no longer
38
-
/// possible to use this class as <see cref="IComparer"/>.
39
-
/// </remarks>
24
+
/// <summary>Provides a base class for alphanumeric comparison.</summary>
25
+
/// <remarks>Although this type can be serialized, but <see cref="ISerializable"/> is missing as this led to conflicts in some cases where it was no longer possible to use this class as <see cref="IComparer"/>.</remarks>
/// Gets the value that determines whether the order is descended.
45
-
/// </summary>
29
+
/// <summary>Gets the value that determines whether the order is descended.</summary>
46
30
protectedboolDescended{get;}
47
31
48
-
/// <summary>
49
-
/// Initializes a new instance of the <see cref="AlphaNumericComparer"/> class.
50
-
/// A parameter specifies whether the order is descended.
51
-
/// </summary>
52
-
/// <param name="descended">
53
-
/// <see langword="true"/> to enable the descending order; otherwise,
54
-
/// <see langword="false"/>.
55
-
/// </param>
32
+
/// <summary>Initializes a new instance of the <see cref="AlphaNumericComparer"/> class. A parameter specifies whether the order is descended.</summary>
33
+
/// <param name="descended"><see langword="true"/> to enable the descending order; otherwise, <see langword="false"/>.</param>
56
34
publicAlphaNumericComparer(booldescended)=>
57
35
Descended=descended;
58
36
59
-
/// <summary>
60
-
/// Initializes a new instance of the <see cref="AlphaNumericComparer"/> class.
61
-
/// </summary>
37
+
/// <summary>Initializes a new instance of the <see cref="AlphaNumericComparer"/> class.</summary>
62
38
publicAlphaNumericComparer():this(false){}
63
39
64
-
/// <summary>
65
-
/// Initializes a new instance of the <see cref="AlphaNumericComparer"/> class
66
-
/// with serialized data.
67
-
/// </summary>
68
-
/// <param name="info">
69
-
/// The object that holds the serialized object data.
70
-
/// </param>
71
-
/// <param name="context">
72
-
/// The contextual information about the source or destination.
73
-
/// </param>
40
+
/// <summary>Initializes a new instance of the <see cref="AlphaNumericComparer"/> class with serialized data.</summary>
41
+
/// <param name="info">The object that holds the serialized object data.</param>
42
+
/// <param name="context">The contextual information about the source or destination.</param>
/// The first thing to try is to use <paramref name="value"/> as a string,
123
-
/// which should work with all <see cref="IEnumerable"/><<see cref="char"/>
124
-
/// > types. If <paramref name="value"/> is not a string type, however, a
125
-
/// check is made to see whether <paramref name="value"/> has a public string
126
-
/// field called <see langword="Text"/> or <see langword="Name"/> that can be
127
-
/// used for comparison. If the <see langword="Text"/> field is found, it will
128
-
/// be used, even if it contains an empty string.
129
-
/// </remarks>
84
+
/// <remarks>The first thing to try is to use <paramref name="value"/> as a string, which should work with all <see cref="IEnumerable"/><<see cref="char"/> > types. If <paramref name="value"/> is not a string type, however, a check is made to see whether <paramref name="value"/> has a public string field called <see langword="Text"/> or <see langword="Name"/> that can be used for comparison. If the <see langword="Text"/> field is found, it will be used, even if it contains an empty string.</remarks>
130
85
/// <inheritdoc/>
131
86
publicvirtualstringGetString(objectvalue)
132
87
{
@@ -163,23 +118,18 @@ public virtual string GetString(object value)
163
118
publicnewvirtualintGetHashCode()=>
164
119
GetType().GetHashCode();
165
120
166
-
/// <summary>
167
-
/// Compare two specified strings and returns an integer that indicates their
168
-
/// relative position in the sort order.
169
-
/// </summary>
170
-
/// <param name="x">
171
-
/// The first string to compare.
172
-
/// </param>
173
-
/// <param name="y">
174
-
/// The second string to compare.
175
-
/// </param>
121
+
/// <summary>Compare two specified strings and returns an integer that indicates their relative position in the sort order.</summary>
122
+
/// <param name="x">The first string to compare.</param>
123
+
/// <param name="y">The second string to compare.</param>
/// Initializes a new instance of the <see cref="AlphaNumericComparer{T}"/>
224
-
/// class. A parameter specifies whether the order is descended.
225
-
/// </summary>
172
+
/// <summary>Initializes a new instance of the <see cref="AlphaNumericComparer{T}"/> class. A parameter specifies whether the order is descended.</summary>
0 commit comments