i have a piece of code in C#. I am using a string as parameter in the constructor to give the filepath then I want to convert it into Uri to interact with the rest of the code in a different class. How can i do that? Can anyone tell the syntax?
public string m_DTBook_FilePath;
public DTBooktoXukConversion(string bookfile)
{
m_DTBook_FilePath = bookfile;
Uri uri = new Uri(m_DTBook_FilePath);
}
Whats wrong in this syntax?