Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DataRelationPropertyDescriptor.cs
Go to the documentation of this file.
3
4namespace System.Data;
5
7{
8 internal DataRelation Relation { 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
17 : base(dataRelation.RelationName, null)
18 {
19 Relation = dataRelation;
20 }
21
22 public override bool Equals([NotNullWhen(true)] object other)
23 {
25 {
27 return dataRelationPropertyDescriptor.Relation == Relation;
28 }
29 return false;
30 }
31
32 public override int GetHashCode()
33 {
34 return Relation.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 DataRowView dataRowView = (DataRowView)component;
45 return dataRowView.CreateChildView(Relation);
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}
override void SetValue(object component, object value)
override bool Equals([NotNullWhen(true)] object other)
DataView CreateChildView(DataRelation relation, bool followParent)