Wednesday, July 12, 2023

c# - LINQ max() and empty list - how to solve

int iMaxLevel = this.Items.Any() ? this.Items.Max( x => x.Level ) : 0;

No comments:

Post a Comment