Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CollectionConverter.cs
Go to the documentation of this file.
4
6
8{
9 public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
10 {
11 if (destinationType == typeof(string) && value is ICollection)
12 {
13 return System.SR.Collection;
14 }
15 return base.ConvertTo(context, culture, value, destinationType);
16 }
17
18 [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.")]
19 public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes)
20 {
21 return new PropertyDescriptorCollection(null);
22 }
23}
override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes)
override? object ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
static string Collection
Definition SR.cs:16
Definition SR.cs:7