2
Answers

cannot implicitly convert type string to int

suhas setty

suhas setty

11y
1.3k
1
 public int GetChannel(string mac)
        {            
            while ((netshline = sr.ReadLine()) != null)
            {
                if(netshline.IndexOf("Channel") > 0)
                {
                   mac = netshline.Substring(netshline.IndexOf(":") + 1).ToString();            
                    
                }               
            }
            return mac;
        }

in return mac i am getting error
Answers (2)