wyrd Posted June 20, 2003 Posted June 20, 2003 C/C++ has typedef; typedef int Stuff; Stuff i; i = 1; Is there an equivelent for C#? Unacceptable answers include "no" and any other variation of it. :D Quote Gamer extraordinaire. Programmer wannabe.
pirate Posted June 28, 2003 Posted June 28, 2003 I have only this code . I don't know if this what you are talking about ! return (System.Data.DataRow[])al.ToArray(typeof(System.Data.DataRow)); Quote
*Experts* Volte Posted June 28, 2003 *Experts* Posted June 28, 2003 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. Quote
_SBradley_ Posted July 2, 2003 Posted July 2, 2003 How about this: using Stuff = System.Int32; Then you can write such lovely code as: Stuff stuff = 5; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.