Cast any C# object to specific type of object.

ReturnModel returnModel = new ReturnModel();
 returnModel = await fileDownloadService.GetUploadedFiles(URL); 
 List FilesList = new List(); 
 var Filelist = returnModel.Data as List;
 // Here I want to convert returnModel.Data into the List

Comments

Popular posts from this blog

Search Record From Table Using jQuery in Asp.net core MVC

How To insert Radio Button Data in DataBase -- MVC

Toolbox Webparts Controls