CodeDocu.com

 

 

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;

 

 

Gelöst

apiArticle.sumviews = (int) article.sumViews;

or

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