Mr.Tickle,
You can do this using the "using" directive, like so:
// Indicate sometypeid is an int.
using SOMETYPEID = int;
Or:
using SOMETYPEID = System.Int32;
However, this is different from a typedef in C++, as it doesn't create
new type information. It is just an alias for the type.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- nick(dot)paldino=at=exisconsulting<dot>com
Mr.Tickle said:
I want to give an alias for a type in C# so i can say SOMETYPEID refers to
int etc, how can I do this on C#?
something like typedef long SOMETYPEID in c++