suhas setty

suhas setty

  • NA
  • 128
  • 52.4k

cannot implicitly convert type string to int

Aug 17 2013 11:44 AM
 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)