AccessorMetadata Class
Namespace: Stride.CoreAssembly: Stride.Core.dll
Metadata used for providing attached getter/setter to a PropertyKey.
Derived from AccessorMetadata:
public class AccessorMetadata : PropertyKeyMetadata
Name | Description | |
---|---|---|
Constructors | ||
AccessorMetadata(AccessorMetadata.GetterDelegate, AccessorMetadata.SetterDelegate) | Initializes a new instance of the AccessorMetadata class. |
|
Methods | ||
GetValue(ref PropertyContainer) | Gets the value from a PropertyContainer associated to this getter. |
|
SetValue(ref PropertyContainer, Object) | Sets the value for a PropertyContainer value. |
Constructors
AccessorMetadata(AccessorMetadata.GetterDelegate, AccessorMetadata.SetterDelegate)
Initializes a new instance of the AccessorMetadata class.
public AccessorMetadata(AccessorMetadata.GetterDelegate getter, AccessorMetadata.SetterDelegate setter)
Parameters
Type | Name | Description |
---|---|---|
AccessorMetadata.GetterDelegate | getter | Getter delegate. |
AccessorMetadata.SetterDelegate | setter | Setter delegate. |
Methods
GetValue(ref PropertyContainer)
Gets the value from a PropertyContainer associated to this getter.
public object GetValue(ref PropertyContainer obj)
Parameters
Type | Name | Description |
---|---|---|
PropertyContainer | obj | the property container. |
Returns
Type | Description |
---|---|
System.Object | The value stored. |
SetValue(ref PropertyContainer, Object)
Sets the value for a PropertyContainer value.
public void SetValue(ref PropertyContainer obj, object value)
Parameters
Type | Name | Description |
---|---|---|
PropertyContainer | obj | The property container. |
System.Object | value | The value to set. |