Insert the value of an attribute into a textBox

3

I need to insert the value of the SALDO attribute of the Conta class into a TextBox .

In java redirection via method get and convert with parse.float and hedge as string in field.

How do I run C #?

    
asked by anonymous 20.04.2017 / 15:39

1 answer

3

It's a bit simpler and more intuitive in C #.

Instead of using get and set methods, you just assign and retrieve the values of these properties (attributes). Who cares about get 's and set ' s is the compiler.

seuTextBox.Text = conta.Saldo.ToString();
    
20.04.2017 / 15:42