C# Pattern Matching - Improve your C# skills in 6 minutes

Опубликовано: 12 Октябрь 2024
на канале: tutorialsEU - C#
5,250
180

🔥 Pattern Matching is an often overlooked programming technique even though it can VASTLY improve your code! So learn how to use it to stand out among the rest!

🚀 C# Progress Academy - Become a job-ready C# and Angular web developer to land your dream developer role: https://bit.ly/45vbPUg

We'll make sure to turn you into a true developer in no time!

Timestamps:
00:00 Introduction
00:15 Presentation of Pattern Matching
00:39 Check out the C# Digest Weekly Newsletter!
01:17 Type pattern matching
03:48 This one is for you!
04:19 Property patterns
06:31 Thanks for watching!

C# Pattern Matching - Improve your C# skills in 6 minutes

So, what is pattern matching?
Pattern matching is a technique where you test an expression to determine if it has certain characteristics. C# pattern matching provides more concise syntax for testing expressions and taking action when an expression matches. The "is expression" supports pattern matching to test an expression and conditionally declare a new variable to the result of that expression. The "switch expression" enables you to perform actions based on the first matching pattern for an expression. These two expressions support a rich vocabulary of patterns.

And, what is C#?
C# (pronounced "See Sharp") is a modern, object-oriented, and type-safe programming language. C# enables developers to build many types of secure and robust applications that run in .NET. C# has its roots in the C family of languages and will be immediately familiar to C, C++, Java, and JavaScript programmers. This tour provides an overview of the major components of the language in C# 8 and earlier. If you want to explore the language through interactive examples, try the introduction to C# tutorials.

C# is an object-oriented, component-oriented programming language. C# provides language constructs to directly support these concepts, making C# a natural language in which to create and use software components. Since its origin, C# has added features to support new workloads and emerging software design practices. At its core, C# is an object-oriented language. You define types and their behavior.

To learn more, make sure to watch the video, and we promise you that you'll become a C# developer by the end of the course! Have fun!

#csharp #coding #tutorial #learn #microsoft #net #patternmatching #pattern

TAGS
c#,.net,c-sharp,csharp,programming,visual studio,c sharp,learn c#,c# programming,c# tutorial,c# for beginners,learn c# programming,c# tutorial for beginners,c# course,tutorial,coding,core,software engineering,switch,docker tutorial,dev,google cloud,what is docker,clean code,c# pattern matching,pattern,matching,regex,switchcase,record,how to,data structure,dotnet,pattern matching,solid,switch expression,blazor tutorial,pattern matching c#

TutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.
Stay tuned and subscribe to tutorialsEU: https://goo.gl/rBFh3x

C#:    / @tutorialseuc  
Facebook:   / tutorialseu-109380204093233  
LinkedIn:   / tutorialseu  
Discord:   / discord