Example #1
0
 private int CastToInt <T>(T source)
 {
     return(Cast <T, int> .With(source));
 }
Example #2
0
 private string CastToString <T>(T source)
 {
     return(Cast <T, string> .With(source));
 }
Example #3
0
 public void Cast_WithInvalidCast_ThrowsException()
 {
     Assert.Throws <TypeInitializationException>(() => Cast <int, CastTests> .With(1));
 }