static Dictionary <string, string> Create(ColorSlice singleton) { return((from colorName in singleton._colorArray where (colorName.Strict == true && colorName.Name.Length > colorName.Hex.Length) || colorName.Strict == false select colorName).DistinctBy(c => c.Name).ToDictionary(p => p.Name, p => p.Hex)); }
static Dictionary <string, string> Create(ColorSlice singleton) { return((from colorName in singleton._colorArray select colorName).DistinctBy(c => c.Name).ToDictionary(p => p.Name, p => p.Hex)); }
static Dictionary <string, string> Create(ColorSlice singleton) { return((from colorName in singleton._colorArray where colorName.Hex.Length > colorName.Name.Length select colorName).DistinctBy(c => c.Hex).ToDictionary(p => p.Hex, p => p.Name)); }