public static IEnumerable <SampleBase> GetSamples(SamplePlatforms platform) { return(sampleList.Where(s => s.SupportedPlatform.HasFlag(platform))); }
public static IEnumerable <string> GetSampleTitles(SamplePlatforms platform) { return(sampleList.Where(s => s.SupportedPlatform.HasFlag(platform)).Select(s => s.Title)); }