4 using System.Globalization;
6 namespace SiliconStudio.Presentation.ValueConverters
14 public override object Convert(
object value, Type targetType,
object parameter, CultureInfo culture)
16 var type = value as Type;
19 throw new ArgumentException(
"The object passed to this value converter is not a type.");
21 return Nullable.GetUnderlyingType(type) ?? value;
This converter convert a Nullable type to its underlying type. If the type is not nullable...
override object Convert(object value, Type targetType, object parameter, CultureInfo culture)