No video

C# 9 - Record Types Introduction & Deep-Dive

  Рет қаралды 6,561

Claudio Bernasconi

Claudio Bernasconi

Күн бұрын

Пікірлер: 14
@ClaudioBernasconi
@ClaudioBernasconi 3 жыл бұрын
What is your take on C# 9 Record Types? Will you use them? Why, or why not?
@parthlearning6809
@parthlearning6809 3 жыл бұрын
Thank you for sharing this great knowledge
@ClaudioBernasconi
@ClaudioBernasconi 3 жыл бұрын
Thank you. 🙂
@BijouBakson
@BijouBakson 2 жыл бұрын
Thank you, that was useful.
@ClaudioBernasconi
@ClaudioBernasconi 2 жыл бұрын
Thank you. 🙂
@BijouBakson
@BijouBakson 2 жыл бұрын
@@ClaudioBernasconi I thank you even more for thanking me. Loop that :)
@user-xg7hi5mh3g
@user-xg7hi5mh3g 2 жыл бұрын
If the data does not change, we don't need to synchronise the access to it ?
@msnotif294
@msnotif294 3 жыл бұрын
Hello. If I wanna to full clone a record. For example: var rec2=rec1 with { }; Is it the same as: var rec2=rec1; // is the 'with' necessary?
@ClaudioBernasconi
@ClaudioBernasconi 3 жыл бұрын
I don't think it's necessary in this case. The with clause allows you to make a copy of the record by providing new values for selected properties.
@msnotif294
@msnotif294 3 жыл бұрын
@@ClaudioBernasconi Ok. Thank you
@ajeetmalviya6280
@ajeetmalviya6280 2 жыл бұрын
Which tool are you using to convert into IL?
@ClaudioBernasconi
@ClaudioBernasconi 2 жыл бұрын
Sharplab io
@47Mortuus
@47Mortuus 3 жыл бұрын
"var" is completely dead now (it has been before, too, because it is, by definition, less readable). instead of...: var person1 = new Person("John", "Adams"); write...: Person person1 = new("John", "Adams"); it is dead now, since the alternative is more readable (Datatype, variable name, assignment) and shorter than the var syntax. From now on, don't use a language feature unless you need it - so for var it would be limited to very few cases such as ArrayLists or whatever.
@jkf16m96
@jkf16m96 2 жыл бұрын
I don't get the statement "is completely dead now" Is it even discouraged or deprecated? Because I guess both options are compiled the same way, only 4 characters of difference (one space and "var") I think you're just exaggerating.
Intro to Records in C# 9 - How To Use Records And When To Use Them
1:19:44
What are record types in C# and how they ACTUALLY work
15:36
Nick Chapsas
Рет қаралды 120 М.
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 20 МЛН
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 159 МЛН
RECORD TYPES | Exploring C# and DOTNET | Rahul Nath
15:32
Rahul Nath
Рет қаралды 3,1 М.
C# Nullable reference types - No more null reference exceptions!
18:06
Every Single LINQ Extension Method With Examples | .NET & C# Essentials
42:28
The Ultimate Guide to C# Records
12:55
Zoran Horvat
Рет қаралды 18 М.
9 UI Frameworks for .NET Desktop App Development [2024]
16:13
Claudio Bernasconi
Рет қаралды 29 М.
C# Tutorial. Records - What They are and How to Use Them
16:10
Nick Proud
Рет қаралды 1,9 М.
Coding Shorts: For The Record - Why You Should Use (Records in C#)
10:46
Shawn Wildermuth
Рет қаралды 12 М.
C# 9 - Top-Level Statements
6:13
Claudio Bernasconi
Рет қаралды 7 М.
Nullable Reference Types and Null Operators in C#
12:56
Jeremy Clark
Рет қаралды 1,1 М.
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 20 МЛН