diff options
author | Jb Evain <jbevain@gmail.com> | 2011-07-09 15:03:10 +0400 |
---|---|---|
committer | Jb Evain <jbevain@gmail.com> | 2011-07-09 15:03:10 +0400 |
commit | 1cbad51bf542f4b287ccd4275b4b9345bab7efbc (patch) | |
tree | 3edeb44ca36e0ec882657c55e01e4d056cc37e5f /Mono.Cecil | |
parent | 496a4aecbe6ae8046013a494e69b76258ad70a0d (diff) |
Make exceptions serializable. Fixes #74.
Diffstat (limited to 'Mono.Cecil')
-rw-r--r-- | Mono.Cecil/BaseAssemblyResolver.cs | 3 | ||||
-rw-r--r-- | Mono.Cecil/MetadataResolver.cs | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Mono.Cecil/BaseAssemblyResolver.cs b/Mono.Cecil/BaseAssemblyResolver.cs index 140cc96..f36ee73 100644 --- a/Mono.Cecil/BaseAssemblyResolver.cs +++ b/Mono.Cecil/BaseAssemblyResolver.cs @@ -51,6 +51,9 @@ namespace Mono.Cecil { } } +#if !SILVERLIGHT && !CF + [Serializable] +#endif public class AssemblyResolutionException : FileNotFoundException { readonly AssemblyNameReference reference; diff --git a/Mono.Cecil/MetadataResolver.cs b/Mono.Cecil/MetadataResolver.cs index 0b912e3..748472f 100644 --- a/Mono.Cecil/MetadataResolver.cs +++ b/Mono.Cecil/MetadataResolver.cs @@ -41,6 +41,9 @@ namespace Mono.Cecil { AssemblyDefinition Resolve (string fullName, ReaderParameters parameters); } +#if !SILVERLIGHT && !CF + [Serializable] +#endif public class ResolutionException : Exception { readonly MemberReference member; |