Table of Contents

Class AccessorMetadata

Namespace
Stride.Core
Assembly
Stride.Core.dll

Metadata used for providing attached getter/setter to a PropertyKey.

public class AccessorMetadata : PropertyKeyMetadata
Inheritance
AccessorMetadata

Constructors

AccessorMetadata(GetterDelegate, SetterDelegate)

Initializes a new instance of the AccessorMetadata class.

public AccessorMetadata(AccessorMetadata.GetterDelegate getter, AccessorMetadata.SetterDelegate setter)

Parameters

getter AccessorMetadata.GetterDelegate

Getter delegate.

setter AccessorMetadata.SetterDelegate

Setter delegate.

Methods

GetValue(ref PropertyContainer)

Gets the value from a PropertyContainer associated to this getter.

public object GetValue(ref PropertyContainer obj)

Parameters

obj PropertyContainer

the property container.

Returns

object

The value stored.

SetValue(ref PropertyContainer, object)

Sets the value for a PropertyContainer value.

public void SetValue(ref PropertyContainer obj, object value)

Parameters

obj PropertyContainer

The property container.

value object

The value to set.