コード例 #1
0
 public List<string> this[string arduinoGroupName]
 {
     set {
         var group = _innerCollection.FirstOrDefault(arduinoGroup => arduinoGroup.Name == arduinoGroupName);
         if (group == null)
         {
             group = new ArduinoGroup(arduinoGroupName);
             _innerCollection.Add(group);
         }
         group.Locations = value;
     }
 }
コード例 #2
0
 public List <string> this[string arduinoGroupName]
 {
     set {
         var group = _innerCollection.FirstOrDefault(arduinoGroup => arduinoGroup.Name == arduinoGroupName);
         if (group == null)
         {
             group = new ArduinoGroup(arduinoGroupName);
             _innerCollection.Add(group);
         }
         group.Locations = value;
     }
 }