Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ConvertTo() [1/2]

override? object System.ComponentModel.TimeSpanConverter.ConvertTo ( ITypeDescriptorContext? context,
CultureInfo? culture,
object? value,
Type destinationType )
inlinevirtual

Reimplemented from System.ComponentModel.TypeConverter.

Definition at line 43 of file TimeSpanConverter.cs.

44 {
45 if (destinationType == typeof(InstanceDescriptor) && value is TimeSpan)
46 {
47 return new InstanceDescriptor(typeof(TimeSpan).GetMethod("Parse", new Type[1] { typeof(string) }), new object[1] { value.ToString() });
48 }
49 return base.ConvertTo(context, culture, value, destinationType);
50 }

References System.culture, and System.value.