.net 6 foreach only if not null

79

.net 6 foreach only if not null -

List<string> items = null;
items?.ForEach(item =>
{
    // ...
});

Comments

Submit
0 Comments