A
Andrew Connell
I'm trying to use enumerations to hardcode or mask (can't find the exact word) for my database table fields. For example:
public enum authors
{
FirstName = "FirstName",
LastName = "LastName"
}
What I'm trying to do is get the actual underlying value of my enum... and I'm having a hard time. Starting to think I need to use structs instead of enums. I've tried using the Parse method, but it just isn't working. Honestly, I just don't understand how to work with them.
Can someone provide a little assistance?
Thanks in advance.
-AC
public enum authors
{
FirstName = "FirstName",
LastName = "LastName"
}
What I'm trying to do is get the actual underlying value of my enum... and I'm having a hard time. Starting to think I need to use structs instead of enums. I've tried using the Parse method, but it just isn't working. Honestly, I just don't understand how to work with them.
Can someone provide a little assistance?
Thanks in advance.
-AC