Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
 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));
 }