Пример #1
0
 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);
 }
Пример #2
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);
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }