C# VAR Keyword | C# Tutorial for Beginners | VAR Keyword in C# | CSharp Using VAR Keyword
Вставка
- Опубліковано 5 лют 2025
- For more such videos visit www.questpond.com
For more such videos subscribe / questpondvideos
See our other Step by Step video series below :-
JavaScript Interview Questions: • JavaScript Interview Q...
C# tutorial for beginners(4 hrs):- • C# Tutorial for Beginn...
C# interview questions and answers:- • C# Interview Questions...
Abstract class vs Interface in C# :- • Abstract Class vs Inte...
ASP.NET MVC Core Interview Questions with answers:- • ASP.NET MVC Interview ...
Angular Interview Questions and Answers :- • Angular Interview Ques...
Learn Azure Step by Step:- • Azure Tutorial for Beg...
Azure AZ-900 fundamentals certification :- • AZ 900 Certification |...
AZ- 204 certification Azure:- • Azure 204 Certificatio...
Learn Angular tutorial step by step tinyurl.com/yc...
Learn Design Pattern Step by Step goo.gl/eJdn0m
Learn Angular tutorial step by step tinyurl.com/yc...
Learn MVC Core step by step :- tinyurl.com/y9j...
Learn SharePoint Step by Step in 8 hours:- goo.gl/XQKHeP
Python Tutorial for Beginners:- • Python Tutorial for Be...
Learn Data Science in 1 hour :- tinyurl.com/y5...
Learn Power BI Step by Step:- tinyurl.com/y6...
PHP Interview Questions : • PHP Interview Question...
Learn MSBI Step by Step in 32 hours:- goo.gl/TTpFZN
Learn Tableau step by step :- tinyurl.com/kh...
Learn SQL Server Step by Step tinyurl.com/ja4...
In this video we will see when to use C# Var keyword and when not use it.
We are also distributing a 200 page Ebook ".NET Interview Question and Answers". If you want this ebook please share this video in your facebook/twitter/linkedin account and email us on questpond@questpond.com with the shared link and we will email you the PDF.
-----------------------------------------------------------------------------------------------
For more details :-
🌐 Website : www.questpond.com
📱 Mob. No. : +91-9967590707 / +91 7700975156 / +91-22-49786776
📧Email : questpond@questpond.com / questpond@gmail.com / questpond@yahoo.com
Share, Support, Subscribe and Connect us on!!!
UA-cam: / questpondvideos
Twitter: / questpond
Instagram : / questpond
Facebook : / questpond
#VarKeywordinC# #UsingVarKeywordinCSharp #C#Var #CSharpStepbyStep #C#BeginnersTutorial #CSharpConcepts #LearnC#
30 Important C# Interview Questions : ua-cam.com/video/BKynEBPqiIM/v-deo.html
25+ OOPS Interview Questions : ua-cam.com/video/u99wAoBjDvQ/v-deo.html
Software Architecture Interview Questions : ua-cam.com/video/AtTgcbLOqMM/v-deo.html
20+ SQL Server Interview Questions : ua-cam.com/video/SEdAF8mSKS4/v-deo.html
10+ Power BI Interview Questions : ua-cam.com/video/Cozc9WNBRt4/v-deo.html
20 MSBI Interview Questions : ua-cam.com/video/Nw_sHEKnOUE/v-deo.html
SQL Server Joins : ua-cam.com/video/KTvYHEntvn8/v-deo.html
SQL Step by Step - ua-cam.com/video/uGlfP9o7kmY/v-deo.html
Angular Step by Step Tutorial for Beginners : ua-cam.com/video/-9VcW7MBDs8/v-deo.html
25 Angular Interview Questions : ua-cam.com/video/-jeoyDJDsSM/v-deo.html
25 Important ASP.NET Interview Questions : ua-cam.com/video/pXmMdmJUC0g/v-deo.html
35 Important JavaScript Interview Questions : ua-cam.com/video/Zb4dPi7CANU/v-deo.html
20 MySQL Interview Questions : ua-cam.com/video/9hfjC-BpY20/v-deo.html
5 MSBI Interview Questions : ua-cam.com/video/5E815aXAwYQ/v-deo.html
20 PHP Interview Questions : ua-cam.com/video/1bpNSynUrl8/v-deo.html
Very clear and helpful! I'm learning LINQ and now it understand why it was using var.
I would like to add here something var keyword can be used at method level and can't be used on class level variable.
Nice explanation.
Thank you!
oooh i see var keyword is like type data Any in kotlin
btw thanks for the information sir
Very helpful video! Thank you!
Very helpful, thank you.
Greatvid
But if you don’t know the datatype and u using var, its hard to work with the variable and to know which method you can use on the value
great tutorial, thanks man
In javascript all we use ia var let .and what is the need of looking into its type if var is used,in worst case of type conversation we can just hover of the near by variable ,dont even have to go into the definition.
My question is will thr be any performance difference?
var should be only used when its difficult to predict the data type looking at the right hand side.
@@questpondvideos var is mostly used in LINQ, so many jobs I have worked over the years and no one ever wants to use var because it causes more readability issues.
@@mortyjr2334 thats what i said in the top answer / same iterated in the video , when its difficult to predict the final data type of the RHS( right hand side) of equal operator like LINQ , Anon functions.
@@questpondvideos I'm not sure I agree much to the point of readability. But more importantly, I feel are not answered here, is if var comes with a cost on performance?
@@uflidd In C# var does not come at cost as its figured out during the compile time.
Thank you this was a good video.
So I use var when I have multiple or unknown datatypes in my code?
Example.
var = myType12.1true;
?