2
Reply

cannot implicitly convert type string to string[]

suhas setty

suhas setty

Aug 17 2013 7:35 AM
3.7k
public string[] GetAccessPointMacAddresses()
        {
            netshline = null;
            while ((netshline = sr.ReadLine()) != null)
            {
                int BSSIDNumber = 0;
                BSSIDNumber = Convert.ToInt32(netshline.IndexOf("BSSID" + 6));
                string result1 = netshline.Substring(netshline.IndexOf(":") + 1);
                return result1;
            }
        }

if i return result1 i am getting this error

Answers (2)