From 3bf17e148f8eb1972eb5a43997780ef9d29201bf Mon Sep 17 00:00:00 2001 From: Mordechai Zuber Date: Thu, 13 Oct 2016 15:02:58 +0300 Subject: [PATCH] Add missing `SecurityCritical` attribute Fixes #1471 --- Octokit/Exceptions/RepositoryFormatException.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Octokit/Exceptions/RepositoryFormatException.cs b/Octokit/Exceptions/RepositoryFormatException.cs index 506fcb950f..5ee10d4ec9 100644 --- a/Octokit/Exceptions/RepositoryFormatException.cs +++ b/Octokit/Exceptions/RepositoryFormatException.cs @@ -3,6 +3,7 @@ using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Runtime.Serialization; +using System.Security; namespace Octokit { @@ -50,7 +51,7 @@ protected RepositoryFormatException(SerializationInfo info, StreamingContext con if (info == null) return; message = info.GetString("Message"); } - + [SecurityCritical] public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context);