Is Dynamic good to use instead of var
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ashutosh GuptaRank #805 · 2.9K reputationPosted Jan 3, 2020, 11:21 PM EST
Dynamic keywords is runtime defining data type of RHS value where var define datatype of RHS value at compile time. Dynamic use reflection. Dynamic only does invoking(i.e. public members) but in inspect meta data. Reflection does both even invoke private members.
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jan 4, 2020, 2:23 AM EST