Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DataTablePropertyDescriptor.cs
Go to the documentation of this file.
1
using
System.ComponentModel
;
2
using
System.Diagnostics.CodeAnalysis
;
3
4
namespace
System.Data
;
5
6
internal
sealed
class
DataTablePropertyDescriptor
:
PropertyDescriptor
7
{
8
public
DataTable
Table
{
get
; }
9
10
public
override
Type
ComponentType
=> typeof(
DataRowView
);
11
12
public
override
bool
IsReadOnly
=>
false
;
13
14
public
override
Type
PropertyType
=> typeof(
IBindingList
);
15
16
internal
DataTablePropertyDescriptor
(
DataTable
dataTable)
17
: base(dataTable.TableName, null)
18
{
19
Table
= dataTable;
20
}
21
22
public
override
bool
Equals
([NotNullWhen(
true
)]
object
other
)
23
{
24
if
(
other
is
DataTablePropertyDescriptor
)
25
{
26
DataTablePropertyDescriptor
dataTablePropertyDescriptor = (
DataTablePropertyDescriptor
)
other
;
27
return
dataTablePropertyDescriptor.Table ==
Table
;
28
}
29
return
false
;
30
}
31
32
public
override
int
GetHashCode
()
33
{
34
return
Table
.GetHashCode();
35
}
36
37
public
override
bool
CanResetValue
(
object
component)
38
{
39
return
false
;
40
}
41
42
public
override
object
GetValue
(
object
component)
43
{
44
DataViewManagerListItemTypeDescriptor
dataViewManagerListItemTypeDescriptor = (
DataViewManagerListItemTypeDescriptor
)component;
45
return
dataViewManagerListItemTypeDescriptor.
GetDataView
(
Table
);
46
}
47
48
public
override
void
ResetValue
(
object
component)
49
{
50
}
51
52
public
override
void
SetValue
(
object
component,
object
value
)
53
{
54
}
55
56
public
override
bool
ShouldSerializeValue
(
object
component)
57
{
58
return
false
;
59
}
60
}
System.ComponentModel.PropertyDescriptor
Definition
PropertyDescriptor.cs:8
System.Data.DataRowView
Definition
DataRowView.cs:7
System.Data.DataTablePropertyDescriptor.Table
DataTable Table
Definition
DataTablePropertyDescriptor.cs:8
System.Data.DataTablePropertyDescriptor.DataTablePropertyDescriptor
DataTablePropertyDescriptor(DataTable dataTable)
Definition
DataTablePropertyDescriptor.cs:16
System.Data.DataTablePropertyDescriptor.ShouldSerializeValue
override bool ShouldSerializeValue(object component)
Definition
DataTablePropertyDescriptor.cs:56
System.Data.DataTablePropertyDescriptor.ResetValue
override void ResetValue(object component)
Definition
DataTablePropertyDescriptor.cs:48
System.Data.DataTablePropertyDescriptor.GetValue
override object GetValue(object component)
Definition
DataTablePropertyDescriptor.cs:42
System.Data.DataTablePropertyDescriptor.CanResetValue
override bool CanResetValue(object component)
Definition
DataTablePropertyDescriptor.cs:37
System.Data.DataTablePropertyDescriptor.IsReadOnly
override bool IsReadOnly
Definition
DataTablePropertyDescriptor.cs:12
System.Data.DataTablePropertyDescriptor.Equals
override bool Equals([NotNullWhen(true)] object other)
Definition
DataTablePropertyDescriptor.cs:22
System.Data.DataTablePropertyDescriptor.SetValue
override void SetValue(object component, object value)
Definition
DataTablePropertyDescriptor.cs:52
System.Data.DataTablePropertyDescriptor.PropertyType
override Type PropertyType
Definition
DataTablePropertyDescriptor.cs:14
System.Data.DataTablePropertyDescriptor.ComponentType
override Type ComponentType
Definition
DataTablePropertyDescriptor.cs:10
System.Data.DataTablePropertyDescriptor.GetHashCode
override int GetHashCode()
Definition
DataTablePropertyDescriptor.cs:32
System.Data.DataTablePropertyDescriptor
Definition
DataTablePropertyDescriptor.cs:7
System.Data.DataTable
Definition
DataTable.cs:29
System.Data.DataViewManagerListItemTypeDescriptor.GetDataView
DataView GetDataView(DataTable table)
Definition
DataViewManagerListItemTypeDescriptor.cs:22
System.Data.DataViewManagerListItemTypeDescriptor
Definition
DataViewManagerListItemTypeDescriptor.cs:7
System.Type
Definition
Type.cs:14
System.ComponentModel.IBindingList
Definition
IBindingList.cs:6
System.ComponentModel
Definition
ColumnAttribute.cs:3
System.Data
Definition
ADP.cs:12
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.ExceptionArgument.value
@ value
System.ExceptionArgument.other
@ other
source
System.Data.Common
System.Data
DataTablePropertyDescriptor.cs
Generated by
1.10.0