C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
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
Java
Learn iOS Programming
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
4
Reply
What is var keyword ?
Atulya Panda
13y
4.4k
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
variables that are declared at method scope can have an implicit type var. An implicitly typed local variable is strongly typed just as if you had declared the type yourself, but the compiler determines the type. The following two declarations of i are functionally equivalent:var i = 10; // implicitly typed int i = 10; //explicitly typed
lakshminarayana srinivasan
13y
2
Var is implicit typed Variable.
Manoj Rawat
11y
1
var is the default data type.
keerthi rakasi
12y
1
Refer this Url : http://www.dotnetfunda.com/articles/show/1567/what-is-the-use-of-var-keyword-in-csharp
Prakash Lakshmanan
11y
0
What is the use of "as" Keyword ?
what is the scope of anonymous type ?
Message