public CanConvertFrom ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | |
sourceType | ||
리턴 | bool |
public void GenericWithConverterCanConvertFromAssertions() { var converter = new StringArrayConverter <MemberTypes, EnumConverter>(",", StringSplitOptions.RemoveEmptyEntries); Assert.That(converter.CanConvertFrom(typeof(string)), Is.True); Assert.That(converter.CanConvertFrom(typeof(int)), Is.False); }
public void GenericWithConverterCanConvertFromAssertions() { var converter = new StringArrayConverter<MemberTypes, EnumConverter>(",", StringSplitOptions.RemoveEmptyEntries); Assert.That(converter.CanConvertFrom(typeof(string)), Is.True); Assert.That(converter.CanConvertFrom(typeof(int)), Is.False); }
public void CanConvertFromAssertions() { var converter = new StringArrayConverter(",", StringSplitOptions.RemoveEmptyEntries); Assert.That(converter.CanConvertFrom(typeof(string)), Is.True); Assert.That(converter.CanConvertFrom(typeof(int)), Is.False); }
public void CanConvertFromAssertions() { var converter = new StringArrayConverter(",", StringSplitOptions.RemoveEmptyEntries); Assert.That(converter.CanConvertFrom(typeof(string)), Is.True); Assert.That(converter.CanConvertFrom(typeof(int)), Is.False); }