public static T NotNull <T>(this T @this, string msg = null) { if (@this != null) { AssertException <T> .Throw(@this, msg ?? $"{@this} of type {typeof(T)} is not null."); } return(@this); }
public static T NotNull <T>(this T @this, string msg = null) { if (@this != null) { AssertException <T> .Throw(@this, msg ?? $"{@this} of type {typeof(T)} is not null."); } return(@this); }