public IEnumerable <string> GetColorProfileNames() { return(from name in MagickNET.GetManifestResourceNames() where name.EndsWith(".icc", StringComparison.OrdinalIgnoreCase) || name.EndsWith(".icm", StringComparison.OrdinalIgnoreCase) let tmpName = name.Substring(0, name.Length - 4) let resourceName = tmpName.Substring(tmpName.LastIndexOf('.') + 1) orderby resourceName select resourceName); }