Good day!
Often I began to see expressions like var a = constructor or function in source codes
Why is var used? Why is the definition of a particular type of object not used?
And in the end, why var and not object if in Sharp any object inherits from object?
Ps it seems that var is already used both in place and out of place, like some answers on the forum using regular expressions, linq, and other scary words.
var
appeared earlier, so rather "auto
is the same asvar
" - VladD