Class Tags
Definition
Namespace: StardewUI
Assembly: StardewUI.dll
Typesafe heterogeneous container for associating arbitrary data with a view or other UI object.
Inheritance
Object ⇦ Tags
Members
Constructors
| Name | Description |
|---|---|
| Tags() |
Fields
| Name | Description |
|---|---|
| Empty | Empty tags that can be used as a placeholder. |
Methods
| Name | Description |
|---|---|
| Create<T>(T) | Creates a new Tags holding a single initial value. |
| Create<T1, T2>(T1, T2) | Creates a new Tags holding two initial values. |
| Create<T1, T2, T3>(T1, T2, T3) | Creates a new Tags holding three initial values. |
| Equals(Object) | (Overrides Object.Equals(Object)) |
| Get<T>() | Gets the tag value of the specified type, if one exists. |
| GetHashCode() | (Overrides Object.GetHashCode()) |
| Set<T>(T) | Replaces the tag value of the specified type. |
Details
Constructors
Tags()
Fields
Empty
Empty tags that can be used as a placeholder.
Field Value
Methods
Create<T>(T)
Creates a new Tags holding a single initial value.
Parameters
value T
The tag value.
Returns
Create<T1, T2>(T1, T2)
Creates a new Tags holding two initial values.
Parameters
value1 T1
The first value.
value2 T2
The second value.
Returns
Create<T1, T2, T3>(T1, T2, T3)
Creates a new Tags holding three initial values.
Parameters
value1 T1
The first value.
value2 T2
The second value.
value3 T3
The third value.
Returns
Equals(Object)
Parameters
obj Object
Returns
Get<T>()
Gets the tag value of the specified type, if one exists.
Returns
T
The stored value of type T, if any; otherwise null.
GetHashCode()
Returns
Set<T>(T)
Replaces the tag value of the specified type.
Parameters
value T
The new tag value.