DumpIf
Dump if predicate is true
1
vote
Denis Valeev
shared this idea
-
Denis Valeev commented
public static T DumpIf<T>(this T @this, bool predicate) => predicate ? @this.Dump() : @this;