cs0552.cs 270 B

1234567891011121314151617
  1. // cs0552.cs: user-defined conversion to/from interface
  2. // Line: 12
  3. //
  4. using System;
  5. using System.IO;
  6. //
  7. //
  8. // Implicit conversion to an interface is not permitted
  9. //
  10. class NoIDispose {
  11. public static implicit operator IDisposable (NoIDispose a)
  12. {
  13. return a.x;
  14. }
  15. }