Error message:

Cannot implicitly convert type 'int?' to 'int'. An explicit conversion exists (are you missing a cast?)



In c# Error

apiArticle.sumviews = article.sumViews;




apiArticle.sumviews = (int) article.sumViews;


apiArticle.sumviews = article.sumViews ?? 0;



Solved: Cannot implicitly convert type int? to int.

Software Entwicklung Stuttgart NĂ¼rtingen
Suche Projekte C#, WPF, Windows App,ASP.Net, vb.Net, WinForms, SQL Server, Access, Excel