How does one do this in c#?
Let's say that myclass has :
private enum Days{};
1) How does one add data to the enum inside the myclass with the help of the constructor? As in :
myclass my = new myclass(Monday,Friday);
so that the enum inside the class gets the "Monday, Friday" properties.
2) Can one also make a property for an enume inside the class once it is initialized ? For example :
my.Days = new enum Days(Tuesday); //where the old settings are replaced.
EDIT:
What I want to do is following:
Have an enum in the main class, like enum Days{Monday,Tuesday,Wednesday,Thursday,Friday};
I would also have something inside the myclass (enum?) so that I can assign some values from Days enum to myclass internal (enum?) with only some but not all of the values in the Days enum.
So that I can get a myclass which contains an (enum?) with "Monday,Tuesday", while some myclass222 contains (enum?) "Friday" etc.
I don't know if the enum is the correct way to do this inside the myclass classes ?