Register | Login 
Forum  
SearchForum Home
     
  Discussions  Development Topics  Type Aliases in...
 Type Aliases in C#
 
 1/14/2008 11:32:06 AM
AlGonzalez
85 posts
nomadicview.blogspot.com/


Type Aliases in C#
Learned something new about the using statement. Not only can you alias a namespace reference:

using WinForms = System.Windows.Forms;

you can also alias types:

using FormsDict = System.Collections.Generic.Dictionary;

Not all that useful since the alias is only defined for the file.

Original link that brought this to my attention: http://www.madprops.org/cs/blogs/mabster/archive/2008/01/14/type-aliases-in-c.aspx

Al Gonzalez
P.S. Solutions, Inc.
http://www.linkedin.com/in/algonzalez
  Discussions  Development Topics  Type Aliases in...

Copyright (c) 2008 GSP Developers
Walling Info Systems | Terms Of Use | Privacy Statement