public override object InternalExecute(Program program, object[] arguments) { #if NILPROPOGATION if (arguments[0] == null) { return(null); } #endif return(VersionNumber.Parse((string)arguments[0])); }
public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object tempValue) { if (tempValue is string) { return(VersionNumber.Parse((string)tempValue)); } else { return(null); } }