Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    AccessorMetadata Class

    Namespace: Stride.Core
    Assembly: Stride.Core.dll

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

    System.Object → PropertyKeyMetadata → AccessorMetadata
    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation