---
title: "Discussion on \"Pattern Matching in c#\" | Hashnode"
description: "Discussion on \"Pattern Matching in c#\". Pattern matching is about examining an object and its properties and making decisions based on what we are looking for.\nPattern matching can turn a complex if-else or switch statement into a compact block of code.\nLet's take a look at some examples \n..."
url: "https://hashnode.com/posts/pattern-matching-in-csharp/629741dfe0a58afd5ae82471"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Pattern Matching in c#](https://ashoksubbiah.in/pattern-matching-in-csharp?utm_source=hashnode&utm_medium=feed)

Pattern matching is about examining an object and its properties and making decisions based on what we are looking for. Pattern matching can turn a complex if-else or switch statement into a compact block of code. Let's take a look at some examples ...

Feb 1, 2022 · 4 min read · ashoksubbiah.in  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)
-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#dotnetcore](https://hashnode.com/tag/dotnetcore)

## Written by

[Ashok](https://hashnode.com/@AshokSubbiah)

@AshokSubbiah

  
[View profile](https://hashnode.com/@AshokSubbiah)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
