Ok, I have this code:
URLs.Add(new URL(str.URL, str.Title, browser));
and this is the URL class:
public class URL
{
string url;
string title;
string browser;
public URL(string url, string title, string browser)
{
this.url = url;
this.title = title;
this.browser = browser;
}
}
Now, how do I access the URL title..?
ie., Property of URLs[0]…? When I print URLs[0].ToString, it just gives me the Namespace.URL.
How do I print the variables inside of the URL class?
Upgrade your class to expose public properties:
Then access your properties like so: