> 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");

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Jeroen Mostert - 21 Feb 2008 20:29 GMT
>> we can use Typedef in C++ . To perform the same operation in C# How can i
>> use?
[quoted text clipped - 5 lines]
>
> using FooBar = System.Console;
It's also common to simply derive a class when dealing with generic instances:
class MySpecialCollection : Dictionary<MyKeyType, MyValueType> {
// add constructors as required
};
This is self-documenting and reduces the potential for typing errors.

Signature
J.
//C++
typedef int NUMBERS;
//C#
using NUMBERS = System.Int32;

Signature
Misbah Arefin
https://mcp.support.microsoft.com/profile/MISBAH.AREFIN
http://www.linkedin.com/in/misbaharefin
> hi,
>
> we can use Typedef in C++ . To perform the same operation in C# How can i
> use?
> Please Explain with example.