Monday, March 30, 2015

Can I define a type that is an alias of another type (like typedef in C++)?

Question:Can I define a type that is an alias of another type (like typedef in C++)??

Answer: </P><P align=justify>Not exactly. You can create an alias within a single file with the "using" directive: using System;</P><P align=justify>using Integer = System.Int32; // alias</P><P align=justify>But you can&#39;t create a true alias, one that extends beyond the file in which it is declared. Refer to the C# spec for more info on the &#39;using&#39; statement&#39;s scope.

Tags:Interview Questions, Microsoft, C#,

Please submit your Interview Answer for the above Question via replying to this post. Thank you for visiting to our blog, Have a Good Day!.



Sponsor Advertisement



Real Estate Management Software

Real Estate Management System Software

Real Estate Management Software is an advanced end-to-end Real Estate Office Management System that enables Real Estate Agencies to manage more effectively, search prorty details, keep property owner data etc. Web-based tracking and accounting solution ideal for commercial, residential housing....

No comments:

Post a Comment