Skip to content

Commit 4ba6afb

Browse files
committed
Refine xml-comments
1 parent 4db6d3a commit 4ba6afb

3 files changed

Lines changed: 23 additions & 23 deletions

File tree

Ramstack.Structures/Text/StringView.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public StringView(string value) : this(value, 0, value.Length, unused: 0)
5454
/// a view for the specified range of the characters in the specified string.
5555
/// </summary>
5656
/// <param name="value">The string to wrap.</param>
57-
/// <param name="index">The zero-based index of the first character in the range.</param>
57+
/// <param name="index">The zero-based starting position of the view in the string.</param>
5858
[MethodImpl(MethodImplOptions.AggressiveInlining)]
5959
public StringView(string value, int index)
6060
{
@@ -71,8 +71,8 @@ public StringView(string value, int index)
7171
/// a view for the specified range of the characters in the specified string.
7272
/// </summary>
7373
/// <param name="value">The string to wrap.</param>
74-
/// <param name="index">The zero-based index of the first character in the range.</param>
75-
/// <param name="length">The number of characters in the range.</param>
74+
/// <param name="index">The zero-based starting position of the view in the string.</param>
75+
/// <param name="length">The number of characters to include in the view.</param>
7676
[MethodImpl(MethodImplOptions.AggressiveInlining)]
7777
public StringView(string value, int index, int length)
7878
{
@@ -103,9 +103,9 @@ public StringView(string value, int index, int length)
103103
/// <paramref name="length"/> are within bounds).
104104
/// </remarks>
105105
/// <param name="value">The string to wrap.</param>
106-
/// <param name="index">The zero-based index of the first character in the range.</param>
107-
/// <param name="length">The number of characters in the range.</param>
108-
/// <param name="unused">Unused parameter, exists solely to disambiguate overloads.</param>
106+
/// <param name="index">The zero-based starting position of the view in the string.</param>
107+
/// <param name="length">The number of characters to include in the view.</param>
108+
/// <param name="unused">Unused parameter used only to differentiate between overloads.</param>
109109
[MethodImpl(MethodImplOptions.AggressiveInlining)]
110110
private StringView(string value, int index, int length, int unused)
111111
{

Ramstack.Structures/Text/StringViewComparer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ private sealed class CultureAwareComparer(CompareInfo info, CompareOptions optio
126126
#endif
127127
{
128128
/// <summary>
129-
/// A singleton instance of the <see cref="T:CultureAwareComparer"/> class
129+
/// A singleton instance of the <see cref="StringViewComparer.CultureAwareComparer"/> class
130130
/// for invariant case-sensitive comparison.
131131
/// </summary>
132132
public static readonly CultureAwareComparer InvariantInstance =
133133
new(CultureInfo.InvariantCulture.CompareInfo, CompareOptions.None);
134134

135135
/// <summary>
136-
/// A singleton instance of the <see cref="T:CultureAwareComparer"/> class
136+
/// A singleton instance of the <see cref="StringViewComparer.CultureAwareComparer"/> class
137137
/// for invariant case-insensitive comparison.
138138
/// </summary>
139139
public static readonly CultureAwareComparer InvariantIgnoreCaseInstance =
@@ -180,7 +180,7 @@ private sealed class OrdinalComparer : StringViewComparer
180180
#endif
181181
{
182182
/// <summary>
183-
/// A singleton instance of the <see cref="T:OrdinalComparer"/> class.
183+
/// A singleton instance of the <see cref="StringViewComparer.OrdinalComparer"/> class.
184184
/// </summary>
185185
public static readonly OrdinalComparer Instance = new();
186186

@@ -225,7 +225,7 @@ private sealed class OrdinalIgnoreCaseComparer : StringViewComparer
225225
#endif
226226
{
227227
/// <summary>
228-
/// A singleton instance of the <see cref="T:OrdinalIgnoreCaseComparer"/> class.
228+
/// A singleton instance of the <see cref="StringViewComparer.OrdinalIgnoreCaseComparer"/> class.
229229
/// </summary>
230230
public static readonly OrdinalIgnoreCaseComparer Instance = new();
231231

Ramstack.Structures/Text/StringViewExtensions.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,34 @@ public static class StringViewExtensions
88
/// <summary>
99
/// Creates a new <see cref="StringView"/> over a string.
1010
/// </summary>
11-
/// <param name="value">The target string.</param>
11+
/// <param name="value">The string to create a view over.</param>
1212
/// <returns>
13-
/// The read-only view representation of the string.
13+
/// A <see cref="StringView"/> representing the specified string.
1414
/// </returns>
1515
public static StringView AsView(this string? value) =>
1616
new(value ?? "");
1717

1818
/// <summary>
19-
/// Creates a new <see cref="StringView"/> over a portion of the target string
20-
/// from a specified position to the end of the string.
19+
/// Creates a new <see cref="StringView"/> over a portion of the specified string
20+
/// starting at a specified position to the end of the string.
2121
/// </summary>
22-
/// <param name="value">The target string.</param>
23-
/// <param name="index">The index at which to begin this slice.</param>
22+
/// <param name="value">The string to create a view over.</param>
23+
/// <param name="index">The zero-based starting position of the view in the string.</param>
2424
/// <returns>
25-
/// The read-only view representation of the string.
25+
/// A <see cref="StringView"/> representing the specified portion of the string.
2626
/// </returns>
2727
public static StringView AsView(this string? value, int index) =>
2828
new(value ?? "", index);
2929

3030
/// <summary>
31-
/// Creates a new <see cref="StringView"/> over a portion of the target string
32-
/// from a specified position for a specified number of characters.
31+
/// Creates a new <see cref="StringView"/> over a portion of the specified string
32+
/// starting at a specified position for a specified number of characters.
3333
/// </summary>
34-
/// <param name="value">The target string.</param>
35-
/// <param name="index">The index at which to begin this slice.</param>
36-
/// <param name="length">The desired length for the slice.</param>
34+
/// <param name="value">The string to create a view over.</param>
35+
/// <param name="index">The zero-based starting position of the view in the string.</param>
36+
/// <param name="length">The number of characters to include in the view.</param>
3737
/// <returns>
38-
/// The read-only view representation of the string.
38+
/// A <see cref="StringView"/> representing the specified portion of the string.
3939
/// </returns>
4040
public static StringView AsView(this string? value, int index, int length) =>
4141
new(value ?? "", index, length);

0 commit comments

Comments
 (0)