ExceptionEventArgs.cs 410 B

123456789101112131415161718
  1. using System;
  2. namespace Team.Communicate.EventArg
  3. {
  4. public class ExceptionEventArgs<TException>: EventArgs where TException : Exception
  5. {
  6. private readonly TException _exception;
  7. public ExceptionEventArgs(TException exception)
  8. {
  9. _exception = exception;
  10. }
  11. public TException GetException()
  12. {
  13. return _exception;
  14. }
  15. }
  16. }