Пример #1
0
 public void InvalidConversionsFail()
 {
     Assert.That(ImplicitNumericValueBinding.TryBind(typeof(object), typeof(int)), Is.Null);
     Assert.That(ImplicitNumericValueBinding.TryBind(typeof(short), typeof(sbyte)), Is.Null);
 }
Пример #2
0
 protected override DuckValueBindingOption TryBind(Type fromType, Type toType)
 {
     return(ImplicitNumericValueBinding.TryBind(fromType, toType));
 }