Using csharp6 syntax to get the day of week

  • Use C#6 syntax to write one line methods in one line, and get shorter code

new way

internal Text GetDayOfWeek() => u.NDOW(u.DOW(Orders.OrderDate)); 

old way

internal Text GetDayOfWeek()
{
    return u.NDOW(u.DOW(Orders.OrderDate));
} 

Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com