I have the following code and i need to use it inside a List<>. Can someone help me on this?
protected void Page_Load(object sender, EventArgs e)
{
string url = "http://localhost:52148/api/federateds";
using (var w = new WebClient())
{
var json_data = string.Empty;
try
{
json_data = w.DownloadString(url);
}
catch (Exception) { }
}
List<federateds> federados = new ????;
}