C# Tutorial. Records - What They are and How to Use Them

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

Nick Proud

Nick Proud

Күн бұрын

#dotnet #csharp #.NET #softwaredevelopment
(Apologies for the weird, occasional echo on my voice!)
C# 9 introduced a really cool feature in the form of records. Records are reference types that provide an alternative to a class or a struct.
In this video, I'm going to give you an overview of the record type in C# and show you how you can implement them in your code.
I'll then talk about when you might choose to use the record type in your projects.

Пікірлер: 4
@Ardittz
@Ardittz Жыл бұрын
Hey Nick I just wanted to let you know that you are an underrated creator, I learn a lot from your content and I have a better understanding in programming since I started to watch your videos. Keep it up the good work King
@nickproudprogrammer
@nickproudprogrammer Жыл бұрын
I appreciate that! Thanks so much!
@humanit2020
@humanit2020 Жыл бұрын
Nick, thank you for recording and sharing this including the simple examples and code comparisons! I love sharing coding snippets like yours with my developers yet I'd give this one a pass as I would confuse my people. Record properties are recommended to be written in Pascal notation (not a biggie and technically a personal choice) but inheritance (of records too) is an "is" relationship: an employee isn't a department yet an employee can be a person. Keep those small session coming though. They are easy to digest. :-)
@nickproudprogrammer
@nickproudprogrammer Жыл бұрын
Fair point. I admit 'department' was not a good choice for an inheritance example. Something like 'person' would have made more sense
What is Span in C# and why you should be using it
15:15
Nick Chapsas
Рет қаралды 246 М.
How many pencils can hold me up?
00:40
A4
Рет қаралды 18 МЛН
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 9 МЛН
100❤️ #shorts #construction #mizumayuuki
00:18
MY💝No War🤝
Рет қаралды 20 МЛН
La final estuvo difícil
00:34
Juan De Dios Pantoja
Рет қаралды 27 МЛН
Coding Shorts: For The Record - Why You Should Use (Records in C#)
10:46
Shawn Wildermuth
Рет қаралды 11 М.
Techorama: C# Records Inside Out
53:29
Rainer Stropek
Рет қаралды 3,1 М.
What are record types in C# and how they ACTUALLY work
15:36
Nick Chapsas
Рет қаралды 116 М.
C# 12 - The Best New Features from the .NET 8 Release!
18:53
"Don't Use Fields in C#! Use Properties Instead" | Code Cop #003
10:27
Java Strings are Immutable - Here's What That Actually Means
7:06
Coding with John
Рет қаралды 601 М.
How To Create Smart Enums in C# With Rich Behavior
17:31
Milan Jovanović
Рет қаралды 50 М.
Intro to Records in C# 9 - How To Use Records And When To Use Them
1:19:44
Huawei который почти как iPhone
0:53
Romancev768
Рет қаралды 515 М.
A Comprehensive Guide to Using Zoyya Tools for Photo Editing
0:50
Карточка Зарядка 📱 ( @ArshSoni )
0:23
EpicShortsRussia
Рет қаралды 263 М.
Nokia 3310 versus Red Hot Ball
0:37
PressTube
Рет қаралды 3,7 МЛН