var keyword gets the type at the runtime or compile time?
or depends?
Plain and simple: compile time
var isn't a type. The actual type is figured out at compile-time.
var
var variables are also known as Implicitly Typed Local Variables (C# Programming Guide)
1.4m articles
1.4m replys
5 comments
57.0k users