C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
7
Reply
What are dynamic variables
Princy Gupta
11y
2k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
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 errorquery = 1234 ; // its also compile, No error
Prem Ranjan
11y
1
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 Jadav
9y
0
dynamic variables is type safe varaibles while passing and parameters and as return type also
vamshi neela
11y
0
http://www.codeproject.com/Articles/69407/The-Dynamic-Keyword-in-C
Pankaj Bajaj
11y
0
http://msdn.microsoft.com/en-us/library/dd264741.aspx
Khan Abrar Ahmed
11y
0
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 tyagi
11y
0
http://msdn.microsoft.com/en-IN/library/dd264736.aspx
Princy Gupta
11y
0
Message