class Anything { List<string> PPP = new List<string>() { "table", "chair", "spoon", "bread" }; string name; } name must be one of the items in the PPP.
name = "bed" //must be an error. How should I write property for name ? And consructor for class Anything ?
For example I can check out value every time with foreach. But I want to learn that is there another ways? PPP can be added value seldom. Therefore I dont use Enum. It is only little part of my program. And I am beginner in OOP. I dont use database or form. I work in console via oop.
List<string>, of course.