ViIvanov

Interface method refactorings

Oct 23rd, 2013
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.21 KB | None | 0 0
  1. interface I<T>
  2. {
  3.     void M(int x); // Rename me or remove parameter.
  4. }
  5.  
  6. class Program : I<string>, I<int>
  7. {
  8.     void I<string>.M(int x) { }
  9.     void I<int>.M(int x) { }
  10.  
  11.     static void Main() { }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment