Esempio n. 1
0
    public void Insert(int index, Device device)
    {
      if (device == null)
      {
        throw new ArgumentNullException("device");
      }

      List.Insert(index, device);
    }
Esempio n. 2
0
    public int IndexOf(Device device)
    {
      if (device == null)
      {
        throw new ArgumentNullException("device");
      }

      return List.IndexOf(device);
    }
Esempio n. 3
0
    public void CopyTo(Device[] array, int arrayIndex)
    {
      if (array == null)
      {
        throw new ArgumentNullException("array");
      }

      List.CopyTo(array, arrayIndex);
    }
Esempio n. 4
0
    public bool Contains(Device device)
    {
      if (device == null)
      {
        throw new ArgumentNullException("device");
      }

      return List.Contains(device);
    }
Esempio n. 5
0
    public void Add(Device device)
    {
      if (device == null)
      {
        throw new ArgumentNullException("device");
      }

      List.Add(device);
    }
Esempio n. 6
0
    public bool Remove(Device device)
    {
      if (device == null)
      {
        throw new ArgumentNullException("device");
      }

      if (List.Contains(device) == false)
      {
        return false;
      }

      List.Remove(device);

      return true;
    }