Link to home
Start Free TrialLog in
Avatar of ssteeves
ssteeves

asked on

Method Parameters. Enumeration?

This should be an easy one.  I have a class method, and I want to limit a parameter to one of two values.  Here's what I want:

Method TransferSpreadsheet(TransferType x);

When a programmer tries to call the TransferSpreadsheet method, and they are prompted to enter the TransferType parameter, I want the only two choices to be "Import", or "Export".  

Do I need an enumeration for this?  Can someone walk me through the steps?

Thanks,

ssteeves
ASKER CERTIFIED SOLUTION
Avatar of gena17
gena17

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial