Thursday, March 16, 2017

What is the difference between Var and Dynamic in C#?

"Var" is statistically typed,this means type of variable declared is decided by compiler at compile time.This type of variables should be initialized at the time of declaration.

"Dynamic" is dynamically typed ,this means the type of variable declared is decided by compiler at run time.This type of  variables are need not be initialized.

No comments:

Post a Comment

Call a function in child component from parent component in React

Consider the following parent component class Parent extends React.Component { constructor(props) { super(props);         thi...