Enabling/Disabling Routines in C#
Channel: Hassan Habib
Date: 11/12/2022

In this session, I'm going to walk you through a quick demo of leveraging [Conditional] capability in C# to enable and disable blocks of code in your program seamlessly and natively.

Read more about Conditional here:
https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.conditionalattribute?view=net-7.0

Here's the code I used for this demo:
https://github.com/hassanhabib/ConDemo