Interviews7 answers
What are dynamic variables
7 Answers
Just like object / var it can hold any type of data but raises error at run-time and any compile time error is not checked by the compiler.
Vishal JadavPosted Aug 7, 2016, 11:52 PM EDT
dynamic variables is type safe varaibles while passing and parameters and as return type also
vamshi neelaPosted May 30, 2014, 9:00 AM EDT
Dynamic Variables, a variables declared with dynamic keyword and dynamic declarations are resolved at run time.
Dynamic Variable is decided by the compiler at run time, no need to initialize the variable at the time of declaration.
Ex. dynamic query;
query = "C# Lnaguage"; //Compile, No error
query = 1234 ; // its also compile, No error
Prem RanjanPosted May 19, 2014, 6:20 AM EDT
http://www.codeproject.com/Articles/69407/The-Dynamic-Keyword-in-C
Pankaj BajajPosted May 13, 2014, 6:17 PM EDT
http://msdn.microsoft.com/en-us/library/dd264741.aspx
Khan Abrar AhmedPosted May 12, 2014, 4:42 AM EDT
Dynamic keyword is used to handle anytime of data if we declare dynamic variable. it can handle anonymous data type and can handle any type of data.
Manoj TyagiPosted May 9, 2014, 4:05 AM EDT
http://msdn.microsoft.com/en-IN/library/dd264736.aspx
Princy GuptaPosted May 8, 2014, 12:14 AM EDT





