typedef equiv?

wyrd

Senior Contributor
Joined
Aug 23, 2002
Messages
1,405
Location
California
C/C++ has typedef;
Code:
typedef int Stuff;
Stuff i;
i = 1;

Is there an equivelent for C#? Unacceptable answers include "no" and any other variation of it. :D
 
I have only this code . I don't know if this what you are talking about !
Code:
return (System.Data.DataRow[])al.ToArray(typeof(System.Data.DataRow));
 
Nope, no typedef in .NET; really, though, there's no need for it. There are no pointers in C# (usually), so there aren't going to be any LPxxxx typedefs, you've got delegates seperately, so there aren't going to be any WndProc (HWND, UINT, WPARAM, LPARAM) style typedefs...

Maybe you could tell us why you need typedefs and we'll tell you if there's another way.
 
Back
Top