Advertisement
alestane

Nested name conflict

Oct 9th, 2013
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.22 KB | None | 0 0
  1. class Menu {
  2.     class Button {
  3.     }
  4. }
  5.  
  6. class FloatingMenu: Menu {
  7.     override class Button: Menu.Button { //override keyword makes no difference
  8.         // defining is fine, but trying to use FloatingMenu.Button is ambiguous
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement