I have an enum
public enum FileExtentions { mp3, mpeg }
And I have a FileInfo of which I want to check if the extension is in the previous enum. I was hoping I could do a
FileExtensions.Any(e=>e.ToString().Equals(file.Extension));
But that would have been too awesome. Any ideas?
What’s the reason behind
Any…Equals? Did you overlookContains?