Skip to content

Erro em float.Parse(Console.ReadLine()); (Calculadora) #109

Discussion options

You must be logged in to vote

Bom dia, @CayoRamos, este aviso ocorre pois diferente de um float uma string pode ser nula (Sem necessidade dos Nullables).
Explico isto na aula de reference e value types.

Desta forma, o compilador te avisa sobre isto.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CayoRamos
Comment options

Answer selected by andrebaltieri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants