Possible Duplicate:
C# enums as function parameters?
I was wondering how I can pass an enum type as a method argument.
I’m trying to create a generic method that will take a combo box, and enum, and fill the combo box with each item of the enum.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Refering to Convert Enum To Dictionary:
Then you can fill your ComboBox with the returned dictionary items.
Refer to the following as well:
Dictionary enumeration in C#
Enum to dictionary