diff --git a/src/Polyfill/Regex/ValueMatch.cs b/src/Polyfill/Regex/ValueMatch.cs index bf19e147..6ab0efab 100644 --- a/src/Polyfill/Regex/ValueMatch.cs +++ b/src/Polyfill/Regex/ValueMatch.cs @@ -23,9 +23,6 @@ namespace System.Text.RegularExpressions; #endif readonly ref struct ValueMatch { - private readonly int _index; - private readonly int _length; - /// /// Crates an instance of the type based on the passed in and . /// @@ -33,19 +30,19 @@ readonly ref struct ValueMatch /// The length of the captured sliced span. internal ValueMatch(int index, int length) { - _index = index; - _length = length; + Index = index; + Length = length; } /// /// Gets the position in the original span where the first character of the captured sliced span is found. /// - public int Index => _index; + public int Index { get; } /// /// Gets the length of the captured sliced span. /// - public int Length => _length; + public int Length { get; } } #endif \ No newline at end of file