Flags in CSHARP

Posts 1–4 of 4 · Page 1 of 1
Flags in CSHARP
how do you create custom flags in Csharp that can be used to assign a certain value to a given object?
Probably the same as in C++ using enums
Lol I know but the exact syntax and application in a little code snippet would be cool
Quote Originally Posted by falzarex View Post
Lol I know but the exact syntax and application in a little code snippet would be cool
enum (C#)

MSDN has the answer to all ;D

Code:
enum Monsterstate { MS_DEAD, MS_ALIVE, MS_VBFAG, MS_GODLIKE };
int state = (int) Monsterstate.MS_GODLIKE;
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us