From b4a0d795c2f8decb6a9dee6c5b63e366094a843d Mon Sep 17 00:00:00 2001 From: Knagis Date: Sat, 24 Oct 2015 01:47:44 +0300 Subject: [PATCH] Added [SecurityCritical] to the exception class methods. #48 --- CommonMark/CommonMarkException.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CommonMark/CommonMarkException.cs b/CommonMark/CommonMarkException.cs index 4a29ee5..c735671 100644 --- a/CommonMark/CommonMarkException.cs +++ b/CommonMark/CommonMarkException.cs @@ -59,6 +59,7 @@ public CommonMarkException(string message, Block block, Exception innerException /// Initializes a new instance of the class from the specified instances of the and classes. /// A instance that contains the information required to deserialize the new instance. /// A instance. + [System.Security.SecuritySafeCritical] protected CommonMarkException( System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext) @@ -74,6 +75,7 @@ protected CommonMarkException( /// The that holds the serialized object data about the exception being thrown. /// The that contains contextual information about the source or destination. /// The parameter is a null reference (Nothing in Visual Basic). + [System.Security.SecuritySafeCritical] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context);