From 667605813642348b5b34841081cd4033a61cc137 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Tue, 20 Feb 2024 20:14:58 +1100 Subject: [PATCH] Update ValueMatch.cs --- src/Polyfill/Regex/ValueMatch.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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