I should know how to do this but I unfortunately don't, so I'd just like to clarify...
I've got a Flags enum:
I then have for example:
I now want to see if all the skillsRequired are contained within skillsAvaliable . Is it possible to do this in one call? Or do I need to loop through each value of skillsRequired compare to the skillsAvaliable and return the resultant bool?
I've got a Flags enum:
Code:
[Flags] public enum SkillSet { Skill1 = 1, Skill2 = 2, Skill3 = 4, Skill4 = 8, Skill5 = 16, Skill6 = 32, Skill7 = 64, Skill8 = 128 }
Code:
SkillSet skillsAvaliable = Skill1 && Skill2 && Skill7 && Skill6; // believe this is correct? SkillSet skillsRequired = Skill1 && Skill7;
Comment