Exemple #1
0
 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);
 }