File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public IEnumerable<AuthProperty> Properties
101
101
/// </summary>
102
102
public IEnumerable < AuthProperty > FindPropertiesByName ( string propertyName )
103
103
{
104
- List < AuthProperty > result ;
104
+ List < AuthProperty > ? result ;
105
105
if ( ! properties . TryGetValue ( propertyName , out result ) )
106
106
{
107
107
return Enumerable . Empty < AuthProperty > ( ) ;
Original file line number Diff line number Diff line change 16
16
17
17
#endregion
18
18
19
+ #if ! NET5_0_OR_GREATER
20
+
19
21
// Content of this file is copied with permission from:
20
22
// https://github.com/dotnet/runtime/tree/e2e43f44f1032780fa7c2bb965153c9da615c3d0/src/libraries/System.Private.CoreLib/src/System/Diagnostics/CodeAnalysis
21
23
// These types are intented to be added as internalized source to libraries and apps that want to
@@ -148,3 +150,5 @@ internal enum DynamicallyAccessedMemberTypes
148
150
/// </summary>
149
151
All = ~ None
150
152
}
153
+
154
+ #endif
Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ public byte[] ValueBytes
338
338
{
339
339
if ( valueBytes == null )
340
340
{
341
- return EncodingASCII . GetBytes ( value ) ;
341
+ return EncodingASCII . GetBytes ( value ! ) ;
342
342
}
343
343
344
344
// defensive copy to guarantee immutability
@@ -391,7 +391,7 @@ public override string ToString()
391
391
/// </summary>
392
392
internal byte [ ] GetSerializedValueUnsafe ( )
393
393
{
394
- return valueBytes ?? EncodingASCII . GetBytes ( value ) ;
394
+ return valueBytes ?? EncodingASCII . GetBytes ( value ! ) ;
395
395
}
396
396
397
397
internal bool KeyEqualsIgnoreCase ( string key )
You can’t perform that action at this time.
0 commit comments