Dismiss
Announcing Stack Overflow Documentation

We started with Q&A. Technical documentation is next, and we need your help.

Whether you're a beginner or an experienced developer, you can contribute.

Sign up and start helping → Learn more about Documentation →

I have a colour class:

public int id { get; set; }
public string color { get; set }

If I was to create a view with two drop down menus, each with the same objects from the class above, and a text box to key in the results, what is the best approach? I would need a results class to record the outcome. (eg Blue & Blue = Blue; Blue & Yellow = Green)

share|improve this question
    
Post some code of what you've tried first before you ask – Vincent Rodomista 23 mins ago
    
Code sample for "a colour class" is not a class... Please Try to post Minimal, Complete, and Verifiable example - so far it is very unclear why you can't have more than one instance of this "class" or more than one property of that type. Also please clarify your criteria for "the best approach" - it is very subjective request and can't be answered on SO in current state. – Alexei Levenkov 10 mins ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.