Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ComponentConverter.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
3
namespace
System.ComponentModel
;
4
5
public
class
ComponentConverter
:
ReferenceConverter
6
{
7
public
ComponentConverter
(
Type
type
)
8
: base(
type
)
9
{
10
}
11
12
[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."
)]
13
public
override
PropertyDescriptorCollection
GetProperties
(
ITypeDescriptorContext
? context,
object
value
,
Attribute
[]? attributes)
14
{
15
return
TypeDescriptor
.
GetProperties
(
value
, attributes);
16
}
17
18
public
override
bool
GetPropertiesSupported
(
ITypeDescriptorContext
? context)
19
{
20
return
true
;
21
}
22
}
System.Attribute
Definition
Attribute.cs:12
System.ComponentModel.ComponentConverter.GetProperties
override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes)
Definition
ComponentConverter.cs:13
System.ComponentModel.ComponentConverter.GetPropertiesSupported
override bool GetPropertiesSupported(ITypeDescriptorContext? context)
Definition
ComponentConverter.cs:18
System.ComponentModel.ComponentConverter.ComponentConverter
ComponentConverter(Type type)
Definition
ComponentConverter.cs:7
System.ComponentModel.ComponentConverter
Definition
ComponentConverter.cs:6
System.ComponentModel.PropertyDescriptorCollection
Definition
PropertyDescriptorCollection.cs:7
System.ComponentModel.ReferenceConverter
Definition
ReferenceConverter.cs:9
System.ComponentModel.TypeDescriptor.GetProperties
static PropertyDescriptorCollection GetProperties([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type componentType)
Definition
TypeDescriptor.cs:1813
System.ComponentModel.TypeDescriptor
Definition
TypeDescriptor.cs:12
System.Type
Definition
Type.cs:14
System.ComponentModel.ITypeDescriptorContext
Definition
ITypeDescriptorContext.cs:4
System.ComponentModel
Definition
ColumnAttribute.cs:3
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.ExceptionArgument.value
@ value
System.ExceptionArgument.type
@ type
source
System.ComponentModel.TypeConverter
System.ComponentModel
ComponentConverter.cs
Generated by
1.10.0