@@ -75,8 +75,7 @@ public string RedirectUri
75
75
{
76
76
get
77
77
{
78
- string value ;
79
- return Dictionary . TryGetValue ( RedirectUriKey , out value ) ? value : null ;
78
+ return Dictionary . TryGetValue ( RedirectUriKey , out var value ) ? value : null ;
80
79
}
81
80
set
82
81
{
@@ -101,11 +100,9 @@ public DateTimeOffset? IssuedUtc
101
100
{
102
101
get
103
102
{
104
- string value ;
105
- if ( Dictionary . TryGetValue ( IssuedUtcKey , out value ) )
103
+ if ( Dictionary . TryGetValue ( IssuedUtcKey , out var value ) )
106
104
{
107
- DateTimeOffset dateTimeOffset ;
108
- if ( DateTimeOffset . TryParseExact ( value , UtcDateTimeFormat , CultureInfo . InvariantCulture , DateTimeStyles . RoundtripKind , out dateTimeOffset ) )
105
+ if ( DateTimeOffset . TryParseExact ( value , UtcDateTimeFormat , CultureInfo . InvariantCulture , DateTimeStyles . RoundtripKind , out var dateTimeOffset ) )
109
106
{
110
107
return dateTimeOffset ;
111
108
}
@@ -135,11 +132,9 @@ public DateTimeOffset? ExpiresUtc
135
132
{
136
133
get
137
134
{
138
- string value ;
139
- if ( Dictionary . TryGetValue ( ExpiresUtcKey , out value ) )
135
+ if ( Dictionary . TryGetValue ( ExpiresUtcKey , out var value ) )
140
136
{
141
- DateTimeOffset dateTimeOffset ;
142
- if ( DateTimeOffset . TryParseExact ( value , UtcDateTimeFormat , CultureInfo . InvariantCulture , DateTimeStyles . RoundtripKind , out dateTimeOffset ) )
137
+ if ( DateTimeOffset . TryParseExact ( value , UtcDateTimeFormat , CultureInfo . InvariantCulture , DateTimeStyles . RoundtripKind , out var dateTimeOffset ) )
143
138
{
144
139
return dateTimeOffset ;
145
140
}
@@ -169,11 +164,9 @@ public bool? AllowRefresh
169
164
{
170
165
get
171
166
{
172
- string value ;
173
- if ( Dictionary . TryGetValue ( RefreshKey , out value ) )
167
+ if ( Dictionary . TryGetValue ( RefreshKey , out var value ) )
174
168
{
175
- bool refresh ;
176
- if ( bool . TryParse ( value , out refresh ) )
169
+ if ( bool . TryParse ( value , out var refresh ) )
177
170
{
178
171
return refresh ;
179
172
}
0 commit comments