c# - assigning type to a variable and using it to initialize other objects -


is possible this:

tybevariable = double; typevariable newdoublevariable = 5; 

i want define variable wich contain type , initialize objects it.

you can use var keyword. implicitly type keyword. can read more here


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

ruby on rails - one-to-many through referance table -

python - Pygame screen.blit not working -