public GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool | ||
context | ITypeDescriptorContext | |
return | bool |
public void GetStandardValues () { NullableConverter converter = new NullableConverter (typeof(MyType?)); Assert.IsTrue (converter.GetStandardValuesSupported (null), "#1"); TypeConverter.StandardValuesCollection values = converter.GetStandardValues (null); // MyTypeConverter returns an empty values collection, but // NullableConverter adds a null value to the set. Assert.AreEqual (1, values.Count, "#2"); Assert.AreEqual (null, values[0], "#3"); }