Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Match()

override bool System.ComponentModel.DataObjectMethodAttribute.Match ( [NotNullWhen(true)] object? obj)
inlinevirtual

Reimplemented from System.Attribute.

Definition at line 41 of file DataObjectMethodAttribute.cs.

42 {
43 if (obj == this)
44 {
45 return true;
46 }
47 if (obj is DataObjectMethodAttribute dataObjectMethodAttribute)
48 {
49 return dataObjectMethodAttribute.MethodType == MethodType;
50 }
51 return false;
52 }

References System.ComponentModel.DataObjectMethodAttribute.MethodType, and System.obj.