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;
44
55using static System . String ;
66
7- internal sealed class ApiVersionModelDebugView
7+ internal sealed class ApiVersionModelDebugView ( ApiVersionModel model )
88{
99 private const string Comma = ", " ;
10- private readonly ApiVersionModel model ;
11-
12- public ApiVersionModelDebugView ( ApiVersionModel model ) => this . model = model ;
1310
1411 public bool VersionNeutral => model . IsApiVersionNeutral ;
1512
Original file line number Diff line number Diff line change @@ -532,16 +532,10 @@ private static ref StringSegment ValidateKey( ref StringSegment key )
532532 }
533533 }
534534
535- private struct TargetAttributesEnumerator : IEnumerable < KeyValuePair < StringSegment , StringSegment > >
535+ private struct TargetAttributesEnumerator ( StringSegment remaining )
536+ : IEnumerable < KeyValuePair < StringSegment , StringSegment > >
536537 {
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 ;
545539
546540 public IEnumerator < KeyValuePair < StringSegment , StringSegment > > GetEnumerator ( )
547541 {
You can’t perform that action at this time.
0 commit comments