private static Dictionary<string, string> Create(ColorSlice singleton)
 {
     return (from colorName in singleton._colorArray
             where colorName.Strict == true && colorName.Hex.Length > colorName.Name.Length
             select colorName).DistinctBy(c => c.Hex).ToDictionary(p => p.Hex, p => p.Name);
 }
 private 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);
 }
Beispiel #3
0
 private 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));
 }
Beispiel #4
0
 private 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));
 }
Beispiel #5
0
 private 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));
 }