Part 15 : How var type is different from anonymous type?

Опубликовано: 09 Июнь 2026
на канале: QuickTech@AJ(Alok Jha)
12
1

Var- var data type was introduced with C# 3.0. It is used to declare implicitly typed local variable means it tells the compiler
to figure out the type of the variable at compile time. A var variable must be initialized at the time of declaration.
Anonymous Type- An anonymous type is a simple class generated by the compiler within IL to store a set of values.
var data type and new keyword is used to create an anonymous type.
#linqinterviewquestion #linqoperators #coding #linq
https://sider.ai/AI-video-shortener-s...