Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Gamer extraordinaire. Programmer wannabe.
  • *Experts*
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...