diff options
author | Jb Evain <jbevain@gmail.com> | 2011-07-09 20:24:27 +0400 |
---|---|---|
committer | Jb Evain <jbevain@gmail.com> | 2011-07-09 20:24:27 +0400 |
commit | 81df043ce6640a4f2fb963e83120013c69803de3 (patch) | |
tree | 08c0b1e5dc08991efd556d6f9b339bcda845658b /Mono.Cecil | |
parent | 1cbad51bf542f4b287ccd4275b4b9345bab7efbc (diff) |
Add serialization ctor to serializable exceptions.
Diffstat (limited to 'Mono.Cecil')
-rw-r--r-- | Mono.Cecil/BaseAssemblyResolver.cs | 9 | ||||
-rw-r--r-- | Mono.Cecil/MetadataResolver.cs | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Mono.Cecil/BaseAssemblyResolver.cs b/Mono.Cecil/BaseAssemblyResolver.cs index f36ee73..10ab2c3 100644 --- a/Mono.Cecil/BaseAssemblyResolver.cs +++ b/Mono.Cecil/BaseAssemblyResolver.cs @@ -67,6 +67,15 @@ namespace Mono.Cecil { { this.reference = reference; } + +#if !SILVERLIGHT && !CF + protected AssemblyResolutionException ( + System.Runtime.Serialization.SerializationInfo info, + System.Runtime.Serialization.StreamingContext context) + : base (info, context) + { + } +#endif } public abstract class BaseAssemblyResolver : IAssemblyResolver { diff --git a/Mono.Cecil/MetadataResolver.cs b/Mono.Cecil/MetadataResolver.cs index 748472f..27a215f 100644 --- a/Mono.Cecil/MetadataResolver.cs +++ b/Mono.Cecil/MetadataResolver.cs @@ -57,6 +57,15 @@ namespace Mono.Cecil { { this.member = member; } + +#if !SILVERLIGHT && !CF + protected ResolutionException ( + System.Runtime.Serialization.SerializationInfo info, + System.Runtime.Serialization.StreamingContext context) + : base (info, context) + { + } +#endif } static class MetadataResolver { |