Tuesday, January 28, 2020

new as of C# 8.0 switch syntax for enums

var gen = organization switch
{
   DashboardOrganization.TotalOrganization => 3,
   _ => 0
};

No comments:

Post a Comment