Serialization of an enum

Ghost

Member
Joined
May 27, 2003
Messages
16
One cannot serialize an enum without members?

Eg:
[Serializable]
public enum ID : int {};

Is it necessary for a member to be present for it to be serializable?
 
Just curious of the benefits of deriving a customer datatype from an enum with no members as opposed to using a structure or a class to define the customer datatype.
 
what if the data type changes. thats y there r no members.

is there a way to Serialize it? else, other alternatives wud have to be thot of...


It is not a Customer as such. "EmpID" was just an example.
 
Back
Top