Ghost Posted May 27, 2003 Posted May 27, 2003 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? Quote
*Gurus* divil Posted May 27, 2003 *Gurus* Posted May 27, 2003 What would be the point of an enumeration without members? Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Ghost Posted May 27, 2003 Author Posted May 27, 2003 i'm using it as a custom data type Eg: public enum ID : int{}; ID EmpID; Quote
Administrators PlausiblyDamp Posted May 27, 2003 Administrators Posted May 27, 2003 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Ghost Posted May 27, 2003 Author Posted May 27, 2003 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. 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.