private IScriptCustomType ( |
||
destinationType | ||
outValue | object | |
return | bool |
bool IScriptCustomType.TryConvertTo(Type destinationType, out object outValue)
{
outValue = null;
if (destinationType == typeof (bool))
{
outValue = value != TimeSpan.Zero;
return true;
}
if (destinationType == typeof (double))
{
outValue = value.TotalDays;
return true;
}
return false;
}
ScriptTimeSpan::IScriptCustomType ( |
|
ScriptTimeSpan::IScriptCustomType ( |