The answer was much simpler!
My good friend told me that it is very easy! take a look at this sample!
public enum State:byte
{
EmailNotValidated = 0x00,
EmailValidated = 0x10,
Admin_AcceptPending = 0x40,
Active = 0x80,
Admin_BlockedAccount = 0xff
}
Pay attention to the part : BYTE after the name Enum ... there is a trick I was looking for! But thanks to everyone who is trying for me!
source
share