creating a member with set values

sde

Well-known member
Joined
Aug 28, 2003
Messages
160
Location
us.ca.fullerton
I have created a Phone Class
AreaCode, Prefix, Suffix, Extention, PhoneType

this is how i want the constructor to work:
Code:
Phone(int AreaCode,int Prefix, int Suffix, in Extention, PhoneType.HomePhone);

The PhoneType is my question here. I want to be able to make a PhoneType class which is basically an array of phone types.

Home Phone, Business Phone, Mobile, Fax, etc...

I am not sure how to make it so I dont have to instance PhoneType, and I want it so i can just use intellisense to select the phone type after i use PhoneType.<drop down list here of all phoen types>

I hope that made sense. So would my PhoneType class just be a bunch of structs? Im not sure how this works. The actually value of each PhoneType just has to be 2 characters.

HP, BP, MB, FX, etc...

can someone point me in the right direction?
 
Back
Top