We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cada54c commit 193a35aCopy full SHA for 193a35a
src/JsonNet/Serialization/JsonTypeReflector.cs
@@ -396,8 +396,10 @@ public static bool DynamicCodeGeneration
396
{
397
new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Demand();
398
new ReflectionPermission(ReflectionPermissionFlag.RestrictedMemberAccess).Demand();
399
+#pragma warning disable CS0618 // Type or member is obsolete
400
new SecurityPermission(SecurityPermissionFlag.SkipVerification).Demand();
401
new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
402
+#pragma warning restore CS0618 // Type or member is obsolete
403
new SecurityPermission(PermissionState.Unrestricted).Demand();
404
_dynamicCodeGeneration = true;
405
}
0 commit comments