Skip to content

Instantly share code, notes, and snippets.

@chaliy
Created April 9, 2010 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chaliy/360767 to your computer and use it in GitHub Desktop.
Save chaliy/360767 to your computer and use it in GitHub Desktop.
// 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