typedef equiv?

wyrd

Well-known member
Joined
Aug 23, 2002
Messages
1,408
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 dont 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, theres no need for it. There are no pointers in C# (usually), so there arent going to be any LPxxxx typedefs, youve got delegates seperately, so there arent going to be any WndProc (HWND, UINT, WPARAM, LPARAM) style typedefs...

Maybe you could tell us why you need typedefs and well tell you if theres another way.
 
Back
Top