示例#1
0
 public void ExplicitStaticMethodIfWithTemplate()
 {
     try
     {
         ThrowTest.If(Condition, () => $"{nameof(BaseCompare)} is not valid");
     }
     catch (Exception e)
     {
         // ignored
     }
 }
示例#2
0
 public void ExplicitStaticMethodIf()
 {
     try
     {
         ThrowTest.If(Condition, nameof(BaseCompare));
     }
     catch (Exception e)
     {
         // ignored
     }
 }