Coding Shorts: C# Type Inference or, How I Learned to Love 'var'

  Рет қаралды 1,158

Shawn Wildermuth

Shawn Wildermuth

Күн бұрын

I think the 'var' keyword is misunderstood. I know some who love it and others who hate it, but what it is really doing. Let's see how it works!
00:00 Introduction
00:49 First Steps
05:48 How It Started
08:15 Inferring Return Values
10:40 Anonymous Types
11:10 Tuples
13:29 Wrapping Up
If you like this video, you might like other videos in my Instructional Videos:
- • Instructional Videos

Пікірлер: 11
@dvsdean
@dvsdean 3 ай бұрын
I always learn something when watching your Coding Shorts even when it's something I think I know real well. I like how you pulled in anonymous types and tuples to wrap it up. Keep 'em coming Shawn, you're awesome.
@swildermuth
@swildermuth 3 ай бұрын
I appreciate that!
@wojciechmierzejewski7048
@wojciechmierzejewski7048 3 ай бұрын
Thank you Shawn.
@PortalUser2
@PortalUser2 3 ай бұрын
Nice one Shawn
@joebrowntea
@joebrowntea 3 ай бұрын
Appreciate it Shawn, Thanks for the lesson. I am your Pluralsight viewer.
@rustyprogrammer
@rustyprogrammer 3 ай бұрын
Being old fashioned I do prefer explicit type declarations for my variables, but having said that, LINQ is the exception. I also switched to the implicit new().
@Dexterdevloper
@Dexterdevloper 3 ай бұрын
thank you , very helpful , great style.
@swildermuth
@swildermuth 3 ай бұрын
Glad you enjoyed it!
@UmanPC
@UmanPC 3 ай бұрын
Good as usual. Tnx Shawn
@swildermuth
@swildermuth 3 ай бұрын
My pleasure!
@HarshithC
@HarshithC 3 ай бұрын
Someone should update the coding standards page of Microsoft. It still says we should not use var 🤦
Coding Shorts: Nuxt without Nuxt - Paged Based Routing and Layouts
14:12
Coding Shorts: C# Dialects and Idioms
19:13
Shawn Wildermuth
Рет қаралды 1,6 М.
Countries Treat the Heart of Palestine #countryballs
00:13
CountryZ
Рет қаралды 12 МЛН
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 4,1 МЛН
СҰЛТАН СҮЛЕЙМАНДАР | bayGUYS
24:46
bayGUYS
Рет қаралды 842 М.
Value & Reference types in C#. Write Better Code!
15:09
Tarodev
Рет қаралды 32 М.
Kafka Consumers in Python - A Walkthrough
14:28
Quix
Рет қаралды 1,8 М.
Coding Shorts: Use Open Telemetry in ASP.NET Core
15:32
Shawn Wildermuth
Рет қаралды 3,4 М.
5 Reasons Why You Should Use Type Hints In Python
13:54
ArjanCodes
Рет қаралды 103 М.
Every single feature of C# in 10 minutes
9:50
Train To Code
Рет қаралды 86 М.
Coding Shorts: Methods, Funcs & Actions...Oh, My!
11:02
Shawn Wildermuth
Рет қаралды 2,1 М.
Coding Shorts: Sharing Variables in .http Files
10:08
Shawn Wildermuth
Рет қаралды 1,1 М.
Coding Shorts: Ahead-of-Time Compilation in C# (AOT)
12:03
Shawn Wildermuth
Рет қаралды 1,4 М.
The Right Way to Check for Null in C#
9:35
Nick Chapsas
Рет қаралды 94 М.
Xiaomi Note 13 Pro по безумной цене в России
0:43
Простые Технологии
Рет қаралды 2,1 МЛН