Re: Like Typedef(In C++) operation what is option in C#.
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Thu, 21 Feb 2008 13:45:13 -0000
Swapnil <Swapnil@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
we can use Typedef in C++ . To perform the same operation in C# How can i
use?
Please Explain with example.
There's no project-wide equivalent of typedef.
You can use using directives on a per file basis, e.g.
using FooBar = System.Console;
....
FooBar.WriteLine("Hi");
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
.
- Follow-Ups:
- Re: Like Typedef(In C++) operation what is option in C#.
- From: Jeroen Mostert
- Re: Like Typedef(In C++) operation what is option in C#.
- Prev by Date: Re: Sort structure on date
- Next by Date: Re: Sort structure on date
- Previous by thread: Sort structure on date
- Next by thread: Re: Like Typedef(In C++) operation what is option in C#.
- Index(es):
Relevant Pages
|