File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed
src/Abstractions/src/Asp.Versioning.Abstractions Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,9 @@ namespace Asp.Versioning;
4
4
5
5
using static System . String ;
6
6
7
- internal sealed class ApiVersionModelDebugView
7
+ internal sealed class ApiVersionModelDebugView ( ApiVersionModel model )
8
8
{
9
9
private const string Comma = ", " ;
10
- private readonly ApiVersionModel model ;
11
-
12
- public ApiVersionModelDebugView ( ApiVersionModel model ) => this . model = model ;
13
10
14
11
public bool VersionNeutral => model . IsApiVersionNeutral ;
15
12
Original file line number Diff line number Diff line change @@ -532,16 +532,10 @@ private static ref StringSegment ValidateKey( ref StringSegment key )
532
532
}
533
533
}
534
534
535
- private struct TargetAttributesEnumerator : IEnumerable < KeyValuePair < StringSegment , StringSegment > >
535
+ private struct TargetAttributesEnumerator ( StringSegment remaining )
536
+ : IEnumerable < KeyValuePair < StringSegment , StringSegment > >
536
537
{
537
- private readonly StringSegment remaining ;
538
- private int start ;
539
-
540
- public TargetAttributesEnumerator ( StringSegment remaining )
541
- {
542
- this . remaining = remaining ;
543
- start = 0 ;
544
- }
538
+ private int start = 0 ;
545
539
546
540
public IEnumerator < KeyValuePair < StringSegment , StringSegment > > GetEnumerator ( )
547
541
{
You can’t perform that action at this time.
0 commit comments