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 -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -