What's New in C# 11 | .NET Conf 2022

  Рет қаралды 27,732

dotnet

dotnet

Күн бұрын

Take it to 11 with Dustin and Mads as they share the latest goodies of C#. Once again, the next version of C# brings new convenience, elegance and expressiveness to a codebase near you!
www.dotnetconf...
#DotNet #dotnetconf #dotnet7
🙋‍♀️🙋‍♂️ Get your questions answered on the Microsoft Q&A for .NET: aka.ms/dotnet-qa
🏫 Learn C#, F#, and .NET with free self-guided learning from Microsoft Learn: aka.ms/learndo...

Пікірлер: 35
@SKRUBL0RD
@SKRUBL0RD Жыл бұрын
this language just keeps getting better and better and all of the quirky syntactical sugar is so juicy and inspiring and makes me want c# to take over as the primary language in all uses everywhere
@KonstantineMuradov
@KonstantineMuradov Жыл бұрын
I know that feeling (=
@ChristianHowell
@ChristianHowell Жыл бұрын
Every time I think I need to create some new package, C# adds it as a feature... The latest is talked about here, the Generic math.. A godsend especially in the switch format...
@ramelandingdong
@ramelandingdong Жыл бұрын
Finally, static virtual interface members. Been waiting for this for years 🙏❤
@obinnaokafor6252
@obinnaokafor6252 Жыл бұрын
Great work team. When is Discriminated Union (DU) coming.
@luislema3863
@luislema3863 Жыл бұрын
That switch looks like the one you can find in rust language 😛, glad to see that now in C#.
@DrNorbet
@DrNorbet Жыл бұрын
I have a question around the "T.Zero" - I am used to using default(T) for types, can this still be done here? The default is presumably still zero as they are non-nullable value types?!
@benjamininkorea7016
@benjamininkorea7016 Жыл бұрын
The thing with the multi-quotes: this is an engineer solving a problem that nobody, EVER, will have. And if they DO have that problem, they deserve what they get. :D The other stuff, though, is very exciting.
@ZakKohler
@ZakKohler Жыл бұрын
This feature is the reason I've been using C#11 in preview. Using it can make test input for unit tests more human readable and therefore maintainable and a better source of documentation.
@modernkennnern
@modernkennnern Жыл бұрын
by multi-quotes, do you mean raw string literals? They are incredibly useful and a problem that people have had for years
@ks1970in
@ks1970in Жыл бұрын
F# style syntax for discriminated unions please, and tail call optimisation.
@obinnaokafor6252
@obinnaokafor6252 Жыл бұрын
It must be idiomatic C#, yet very expressive.
@XmooosX
@XmooosX Жыл бұрын
3:46 Did my man over here use a "" instead of string.Empty; :D
@mrdza96
@mrdza96 Жыл бұрын
They are absolutely the same.
@Neme112
@Neme112 Жыл бұрын
There's no reason to use string.Empty.
@modernkennnern
@modernkennnern Жыл бұрын
@@Neme112 Functionally they're equivalent, but it makes the intent more clear.
@Neme112
@Neme112 Жыл бұрын
​@@modernkennnern I don't think it does. There's nothing clearer than just making an empty string with empty quotes. It says exactly what it does.
@modernkennnern
@modernkennnern Жыл бұрын
@@Neme112 "​" and "" are not equivalent though, which could be a problem. (Hint, if you can't see the difference, it's because there's a zero-width space in there)
@andrewp7497
@andrewp7497 Жыл бұрын
Very ugly code at 21:00, looking more like angular and not readable at all, bleuuugh.
@luizpar
@luizpar Жыл бұрын
I hate that you guys are dumbing down the language. It’s losing all it’s sense of structure. It’s really frustrating. Making the language more intellectually accessible doesn’t do any good in the long term, and you should know this. It only creates a false sense of understanding at the beginning, postponing the necessity to understand the basics, such as “using” directives, or namespaces, or classes, or even… the Main method!
@emreaka3965
@emreaka3965 Жыл бұрын
take cs50 then use c#. problem solved.
@andreasmewald2439
@andreasmewald2439 Жыл бұрын
IParsable where T : IParsable? can someone explain this ?!?!
@krajekdev
@krajekdev Жыл бұрын
Read about "curiously recurring template pattern"
@Robert-G
@Robert-G Жыл бұрын
Considering the vague Delphi kinship of C#: it is really great seeing an equivalent of Delphi’s virtual/abstract class methods getting a comeback to the netcoreapp clr. :-) with a few nice twists no less… they can still be called fully static with 0 overhead!
@GSoftagon
@GSoftagon Жыл бұрын
Is anyone still using Delphi? It is sad that this great programming language is no longer popular.
@villesipola
@villesipola Жыл бұрын
So still no semi-auto properties?
@jonasaraldi
@jonasaraldi Жыл бұрын
"...just add one more (quote)" 24:00 NOOOOO, It's ridiculous.
@modernkennnern
@modernkennnern Жыл бұрын
Do you prefer \"\"\"? Is that more readable?
@jonasaraldi
@jonasaraldi Жыл бұрын
@@modernkennnern No, I just didn’t like the solution presented… but It’s my opinion
@modernkennnern
@modernkennnern Жыл бұрын
@@jonasaraldi personally I think it's very clever and intuitive. It's a niche scenario - most often you just have 3 - but if you for some reason need 3 consecutive inside the string itself then you need another. For reference, if you want to string interpolate, you do the same "dance" - if there is a "{}" inside the string, then you need two "$$" before the string ($$"""......""")
@csm-csm
@csm-csm Жыл бұрын
Well? How far is C# team from reimplementing all features Haskell in dotnet?
@DamonAchey
@DamonAchey Жыл бұрын
trying to figure out how to multiply by a constant not zero or one, hmmm.
@ZakKohler
@ZakKohler Жыл бұрын
Maybe you could multiply the static generic one by a scaler of a non-generic type?
@DamonAchey
@DamonAchey Жыл бұрын
@@ZakKohler I found T.CreateChecked(42) which will create a T type from a 42 constant. Looks funny but performs well.
@daddy2claire
@daddy2claire Жыл бұрын
6:45 Still wrapping my head around required optional attribute parameters 😁
What's New in C# 12 | .NET Conf 2023
35:28
dotnet
Рет қаралды 56 М.
What's new in C# 10
29:28
dotnet
Рет қаралды 87 М.
Spongebob ate Patrick 😱 #meme #spongebob #gmod
00:15
Mr. LoLo
Рет қаралды 17 МЛН
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 70 МЛН
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 9 МЛН
If Your Code Looks Like This... You're A GOOD Programmer
16:39
Continuous Delivery
Рет қаралды 71 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 197 М.
What’s new in C# 13 | BRK186
46:27
Microsoft Developer
Рет қаралды 45 М.
Stop Using FirstOrDefault in .NET! | Code Cop #021
12:54
Nick Chapsas
Рет қаралды 73 М.
Performance Improvements in .NET 7 | .NET Conf 2022
23:50
dotnet
Рет қаралды 15 М.
RECORD TYPES | Exploring C# and DOTNET | Rahul Nath
15:32
Rahul Nath
Рет қаралды 3,4 М.
Don't Use Polly in .NET Directly. Use this instead!
14:58
Nick Chapsas
Рет қаралды 63 М.
What's new for Blazor in .NET 7 | .NET Conf 2022
28:32
dotnet
Рет қаралды 40 М.
The New Option and Result Types of C#
15:05
Nick Chapsas
Рет қаралды 69 М.
Spongebob ate Patrick 😱 #meme #spongebob #gmod
00:15
Mr. LoLo
Рет қаралды 17 МЛН