Readdy Write

Gelöst: Cannot implicitly convert type 'int?' to 'int'.

24.03.2021 (👁3225)

Gelöst: Cannot implicitly convert type 'int?' to 'int'.

 

 

Fehlermeldung:

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

 

 

In c# Fehler

apiArticle.sumviews = article.sumViews;

 

 

Gelöst

apiArticle.sumviews = (int) article.sumViews;

or

apiArticle.sumviews = article.sumViews ?? 0;

 

 


0,00 €