DEV Community

Daisy
Daisy

Posted on

var Keyword in C#

  1. The var keyword instructs the compiler refer to the type of variable assigned on the right side of expression.

  2. The inferred type may be a built-in type, an anonymous type, a user-defined type, or a type defined in the NET class library.

  3. implicit type variable,

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay