What is dynamic keyword in c#?
c#
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
MahaRank #2,573 · 543 reputationPosted Oct 27, 2014, 10:37 AM EDT
In the above webpage at the right side upper corner there is a search box. If you typed the subject you want and press GO button you will find out the subject in detail you want.
Ajay YadavRank #313 · 8.1K reputationPosted Oct 27, 2014, 6:10 PM EDT
Arunava BhattacharjeeRank #635 · 3.8K reputationPosted Oct 27, 2014, 7:36 PM EDT
Read this article. It will clear all your doubts regarding dynamic .
Anupam SinghRank #643 · 3.7K reputationPosted Oct 27, 2014, 8:35 PM EDT
// declaration and initialization
object obj="anupam";
dynamic dyn="anupam";
// now if you want to use it
// with object you have to cast it as string
Console.WriteLine((string)obj); // will check type on compile time.
// with dynamic type
Console.WriteLine(dyn); // will check everything on run time.