Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MultilineStringConverter.cs
Go to the documentation of this file.
3
5
7{
8 public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
9 {
10 if (destinationType == null)
11 {
12 throw new ArgumentNullException("destinationType");
13 }
14 if (destinationType == typeof(string) && value is string)
15 {
16 return System.SR.Text;
17 }
18 return base.ConvertTo(context, culture, value, destinationType);
19 }
20
21 [RequiresUnreferencedCode("The Type of value cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
22 public override PropertyDescriptorCollection? GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes)
23 {
24 return null;
25 }
26
27 public override bool GetPropertiesSupported(ITypeDescriptorContext? context)
28 {
29 return false;
30 }
31}
override? PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes)
override? object ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
override bool GetPropertiesSupported(ITypeDescriptorContext? context)
static string Text
Definition SR.cs:44
Definition SR.cs:7