Skip to content
MAKOLYTE

MAKOLYTE

Solve real coding problems

  • About
  • Latest
  • C#
    • ASP.NET
    • Event-driven
    • Visual Studio
    • WinForms
    • Windows Service
  • Java
    • Setup
    • Spring
    • AWS
  • Python
  • SQL
    • SQL Server
    • MySQL
  • Principles and Practice
    • Algorithms
    • Design Patterns
    • Dependency Injection
    • Refactoring
    • Unit Testing

Pattern Matching

C# 7 – Pattern Matching – switch with type pattern

10/16/202007/01/2020 by Mak

In C# 7 they added Pattern Matching. One application of this is using the switch statement with the type pattern. Here’s an example:

Categories C# Tags Pattern Matching, Switch Statement, Type Pattern Leave a comment

Categories

  • C# (130)
    • ASP.NET (7)
    • Console App (2)
    • Event-driven (10)
    • Visual Studio (10)
    • Windows Service (2)
    • WinForms (11)
  • Java (5)
    • AWS (4)
    • Setup (1)
    • Spring (4)
  • PowerShell (1)
  • Principles and Practice (29)
    • Algorithms (4)
    • Data Structures (1)
    • Dependency Injection (4)
    • Design Patterns (5)
    • Refactoring (5)
    • Unit Testing (10)
  • Python (2)
  • SQL (20)
    • MySQL (2)
    • SQL Server (17)

Tags

Amazon SQS app.config ASP.NET AsyncAwait Attributes AWS BindingList C# Code Smells Console App DataRow DataTestMethod Dependency Injection Dictionary Enum Event-driven programming Exception Extension Methods File IO Generics hashset HttpClient JSON JsonConverter JsonSerializerOptions Linq message queues mocking Moq Newtonsoft.JSON Nuget Refactoring ReportViewer ReportViewer designer SQL SQL Server Switch Statement System.InvalidOperationException System.Reflection System.Text.Json Task Threading unit testing Visual Studio WinForms

Privacy Policy

  • Privacy Policy
© 2021 MAKOLYTE • Powered by GeneratePress