public class MyException : Exception, ISerializable { public MyException() : base("丟出自訂例外狀況") { } public MyException(string message) : base(message) { } public MyException(string message, Exception inner) : base(message, inner) { } protected MyException(SerializationInfo info, StreamingContext context) : base(info, context) { } }
沒有留言:
張貼留言