title: How to list Bluetooth clients using InTheHand.Net.Bluetooth 4.0.15 in C#
body: <p>I am trying to get a list of known bluetooth connections that I have already paired to using the windows bluetooth app.</p>
  <p>I have tried the code mentioned in earlier post i.e.:</p>
  <pre><code>public void scan()
      {
          BluetoothClient client = new BluetoothClient();
          BluetoothDeviceInfo[] devices = client.DiscoverDevices();
          foreach (BluetoothDeviceInfo d in devices)
          {
              BTDeviceList.Add(d.DeviceName);
  
          }
      }
  </code></pre>
  <p>The line  <code>BluetoothDeviceInfo[] devices = client.DiscoverDevices();</code> is causing an error in Visual Studio.</p>
  <blockquote>
  <p>CS0266: Cannot implicetly convert type 'System.Collection.Generic.IReadOnlyCollection&lt;InTheHand.Net.Sockets.BluetoothDeviceInfo&gt;' to 'InTheHand.Net.Sockets.BluetoothDeviceInfo[]'. An explicit conversion exists (are you missing a cast?)</p>
  </blockquote>
  <p>Can any one point me in the right direction of collecting the list of devices which are known by the computer.</p>