Example #1
0
 public void CopyTo(KeyValuePair<object, ISmartLight>[] array, int arrayIndex)
 {
     if (array.All(x => x.Key is short && x.Value is ISmartLight))
     {
         foreach(KeyValuePair<object, ISmartLight> item in array)
         {
             //lights
         }
     }
     else
     {
         throw new Exception("All KeyValuePairs need to have a short as key and a Lyte as value for this controller");
     }
 }