Skip to content

Commit 193a35a

Browse files
committed
Version 2.0.5: Suppressed warning
1 parent cada54c commit 193a35a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/JsonNet/Serialization/JsonTypeReflector.cs

+2
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,10 @@ public static bool DynamicCodeGeneration
396396
{
397397
new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Demand();
398398
new ReflectionPermission(ReflectionPermissionFlag.RestrictedMemberAccess).Demand();
399+
#pragma warning disable CS0618 // Type or member is obsolete
399400
new SecurityPermission(SecurityPermissionFlag.SkipVerification).Demand();
400401
new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
402+
#pragma warning restore CS0618 // Type or member is obsolete
401403
new SecurityPermission(PermissionState.Unrestricted).Demand();
402404
_dynamicCodeGeneration = true;
403405
}

0 commit comments

Comments
 (0)