interfaces.cs 355 B

12345678910111213141516171819202122
  1. interface X {
  2. // Methods
  3. new int IntegerMethod (int a, int b);
  4. new int IntegerMethod (int a, string c);
  5. new int StringMethod ();
  6. int A (string b);
  7. // Properties
  8. new string TheString { get; set; }
  9. int TheInt { get; }
  10. int TheInt2 { set; }
  11. int TheInt3 { set; get; }
  12. // Events
  13. new event int MyEvent;
  14. event string MyEvent2;
  15. // Indexers
  16. }