DummyFunc.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
  2. using System;
  3. namespace ReactiveTests.Dummies
  4. {
  5. static class DummyFunc<T>
  6. {
  7. public static readonly Func<T> Instance = () => { throw new NotImplementedException(); };
  8. }
  9. static class DummyFunc<T, U>
  10. {
  11. public static readonly Func<T, U> Instance = t => { throw new NotImplementedException(); };
  12. }
  13. static class DummyFunc<T, U, V>
  14. {
  15. public static readonly Func<T, U, V> Instance = (t, u) => { throw new NotImplementedException(); };
  16. }
  17. static class DummyFunc<T, U, V, W>
  18. {
  19. public static readonly Func<T, U, V, W> Instance = (t, u, v) => { throw new NotImplementedException(); };
  20. }
  21. static class DummyFunc<T, U, V, W, X>
  22. {
  23. public static readonly Func<T, U, V, W, X> Instance = (t, u, v, w) => { throw new NotImplementedException(); };
  24. }
  25. static class DummyAction
  26. {
  27. public static readonly Action Instance = () => { throw new NotImplementedException(); };
  28. }
  29. static class DummyAction<T>
  30. {
  31. public static readonly Action<T> Instance = t => { throw new NotImplementedException(); };
  32. }
  33. static class DummyAction<T, U>
  34. {
  35. public static readonly Action<T, U> Instance = (t, u) => { throw new NotImplementedException(); };
  36. }
  37. }