code_junkie

C# Default scope resolution

Nov 11th, 2011
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. MyPackage.MyClass.Button;
  2.  
  3. using MyButton = MyPackage.MyClass.Button;
  4.  
  5. using Windows.Forms;
  6.  
  7. using MyPackage.MyClass;
  8.  
  9. using My = MyPackage.MyClass;
  10. //... then
  11. My.Button b = ...
  12.  
  13. using MyButton = MyPackage.MyClass.Button;
  14.  
  15. using Button = MyPackage.MyClass.Button;
Add Comment
Please, Sign In to add comment