cec: only target .net 2.0, include all the new stuff in the installer
[deb_libcec.git] / src / CecSharpTester / CecSharpClient.cs
index 342d7c094e1b74eeffedce288953221007f960a0..8f6c576c1bb4c0f2ab151d4408f9a2d9c0e3fae3 100644 (file)
@@ -32,7 +32,6 @@
 
 using System;
 using System.Collections.Generic;
-using System.Linq;
 using System.Text;
 
 namespace CecSharpClient
@@ -334,7 +333,7 @@ namespace CecSharpClient
           Console.WriteLine("CEC bus information");
           Console.WriteLine("===================");
           CecLogicalAddresses addresses = Lib.GetActiveDevices();
-          for (int iPtr = 0; iPtr < addresses.Addresses.Count(); iPtr++)
+          for (int iPtr = 0; iPtr < addresses.Addresses.Length; iPtr++)
           {
             CecLogicalAddress address = (CecLogicalAddress)iPtr;
             if (!addresses.IsSet(address))