Trying out the Code Snippet Plug In for Windows Live Writer
So I am going to past some code.
1: public class OckhamException : ApplicationException
2: {
3: //
4: // For guidelines regarding the creation of new exception types, see
5: // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
6: // and
7: // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
8: //
9:
10: public OckhamException() { }
11: public OckhamException( string message ) : base( message ) { }
12: public OckhamException( string message, Exception inner ) : base( message, inner ) { }
13: protected OckhamException(
14: System.Runtime.Serialization.SerializationInfo info,
15: System.Runtime.Serialization.StreamingContext context )
16: : base( info, context ) { }
17: }
and that’s what it looks like. No work at all. Veeeery nice.
public class OckhamException : ApplicationException
{
//
// For guidelines regarding the creation of new exception types, see
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
// and
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
//
public OckhamException() { }
public OckhamException( string message ) : base( message ) { }
public OckhamException( string message, Exception inner ) : base( message, inner ) { }
protected OckhamException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context )
: base( info, context ) { }
}
you can adjust things like line numbers and embedded styles.
Leave a Reply