Skip to content

Commit f710348

Browse files
authored
インデクサーを削除 (#44)
1 parent 30c310c commit f710348

File tree

2 files changed

+0
-100
lines changed

2 files changed

+0
-100
lines changed

Source/Utf8Utility/Utf8String.cs

-23
Original file line numberDiff line numberDiff line change
@@ -44,29 +44,6 @@ public readonly struct Utf8String
4444
/// </value>
4545
public int Length => _value.Length;
4646

47-
/// <summary>
48-
/// 指定されたインデックスの値を取得します。
49-
/// </summary>
50-
/// <param name="index">インデックス</param>
51-
/// <returns>指定されたインデックスの値</returns>
52-
public byte this[int index] => _value[index];
53-
54-
#if NET5_0_OR_GREATER
55-
/// <summary>
56-
/// 指定されたインデックスの値を取得します。
57-
/// </summary>
58-
/// <param name="index">インデックス</param>
59-
/// <returns>指定されたインデックスの値</returns>
60-
public ReadOnlySpan<byte> this[Index index] => _value.AsSpan(index);
61-
62-
/// <summary>
63-
/// 指定された範囲の<see cref="byte"/>配列を取得します。
64-
/// </summary>
65-
/// <param name="range">範囲</param>
66-
/// <returns>指定された範囲の<see cref="byte"/>配列</returns>
67-
public ReadOnlySpan<byte> this[Range range] => _value.AsSpan(range);
68-
#endif
69-
7047
/// <summary>
7148
/// <see cref="Utf8String"/>構造体の新しいインスタンスを取得します。
7249
/// </summary>

Tests/Utf8Utility.Tests/Utf8StringIndexerTest.cs

-77
This file was deleted.

0 commit comments

Comments
 (0)