In C #, how can I remove elements from an enum array?
Here is the listing:
public enum example { Example1, Example2, Example3, Example4 }
Here is my code to get the listing:
var data = Enum.GetValues(typeof(example));
How to remove Example2 from a data variable? I tried to use LINQ, however I'm not sure if this can be done.
source share