Skip to content

Commit

Permalink
Added [SecurityCritical] to the exception class methods. #48
Browse files Browse the repository at this point in the history
  • Loading branch information
Knagis committed Oct 23, 2015
1 parent f5f3855 commit b4a0d79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CommonMark/CommonMarkException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public CommonMarkException(string message, Block block, Exception innerException
/// <summary>Initializes a new instance of the <see cref="CommonMarkException" /> class from the specified instances of the <see cref="System.Runtime.Serialization.SerializationInfo" /> and <see cref="System.Runtime.Serialization.StreamingContext" /> classes.</summary>
/// <param name="serializationInfo">A <see cref="System.Runtime.Serialization.SerializationInfo" /> instance that contains the information required to deserialize the new <see cref="T:System.Security.Authentication.InvalidCredentialException" /> instance. </param>
/// <param name="streamingContext">A <see cref="System.Runtime.Serialization.StreamingContext" /> instance. </param>
[System.Security.SecuritySafeCritical]
protected CommonMarkException(
System.Runtime.Serialization.SerializationInfo serializationInfo,
System.Runtime.Serialization.StreamingContext streamingContext)
Expand All @@ -74,6 +75,7 @@ protected CommonMarkException(
/// <param name="info">The <see cref="System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="System.ArgumentNullException">The <paramref name="info" /> parameter is a <c>null</c> reference (<c>Nothing</c> in Visual Basic).</exception>
[System.Security.SecuritySafeCritical]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
Expand Down

0 comments on commit b4a0d79

Please sign in to comment.