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);
 }
 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);
 }
 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);
 }
Exemple #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));
 }
Exemple #5
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));
 }
Exemple #6
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));
 }