lighten up nat project

This commit is contained in:
Luke Pulverenti
2016-10-27 19:53:57 -04:00
parent 0c663a99dc
commit 8e57296f69
7 changed files with 41 additions and 262 deletions

View File

@@ -25,11 +25,9 @@
//
using System;
using System.Security.Permissions;
namespace Mono.Nat
{
[Serializable]
public class MappingException : Exception
{
private int errorCode;
@@ -45,7 +43,6 @@ namespace Mono.Nat
get { return this.errorText; }
}
#region Constructors
public MappingException()
: base()
{
@@ -67,21 +64,5 @@ namespace Mono.Nat
: base(message, innerException)
{
}
protected MappingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
#endregion
[SecurityPermission(SecurityAction.Demand, SerializationFormatter=true)]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
if(info==null) throw new ArgumentNullException("info");
this.errorCode = info.GetInt32("errorCode");
this.errorText = info.GetString("errorText");
base.GetObjectData(info, context);
}
}
}