Created
April 9, 2010 01:27
-
-
Save chaliy/360767 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Code | |
exception MyError of string | |
// and generate stuff | |
[Serializable, CompilationMapping(SourceConstructFlags.Exception)] | |
public class MyError : Exception, IStructuralEquatable | |
{ | |
internal string Data0@; | |
protected MyError(SerializationInfo info, StreamingContext context) : base(info, context) | |
{ | |
// NOTIHING HERE! | |
} | |
// Skipped stuff | |
public string Data0 | |
{ | |
get | |
{ | |
return this.Data0@; | |
} | |
} | |
// THERE IS NOT ISerializable.GetObjectData IMPLEMENTATION! | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment