protected override DuckValueBindingOption TryBind(Type fromType, Type toType) { return(ImplicitUserConversionValueBinding.TryBind(fromType, toType)); }
public void NullableValueTypeToValueTypeIsNotBindable() { Assert.That(ImplicitUserConversionValueBinding.TryBind(typeof(int?), typeof(UserStruct)), Is.Null); }
public void ValueTypeToValueTypeWithoutOpImplicitIsNotBindable() { Assert.That(ImplicitUserConversionValueBinding.TryBind(typeof(UserStruct), typeof(int)), Is.Null); }