Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    DelegateDefaultValueMetadata<T> Class

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

    Specifies a delegate to fetch the default value of an PropertyKey.

    System.Object → PropertyKeyMetadata → DefaultValueMetadata → DefaultValueMetadata<T> → DelegateDefaultValueMetadata<T>
    Derived from DelegateDefaultValueMetadata<T>:

    public class DelegateDefaultValueMetadata<T> : DefaultValueMetadata<T>
    Type Parameters
    Name Description
    T
    Name Description
    Constructors
    DelegateDefaultValueMetadata(DelegateDefaultValueMetadata<T>.DefaultValueCallback)

    Initializes a new instance of the DelegateDefaultValueMetadata<T> class.

    Properties
    KeepValue
    Methods
    GetDefaultValueT(ref PropertyContainer)
    | Improve this Doc View Source

    Constructors


    DelegateDefaultValueMetadata(DelegateDefaultValueMetadata<T>.DefaultValueCallback)

    Initializes a new instance of the DelegateDefaultValueMetadata<T> class.

    public DelegateDefaultValueMetadata(DelegateDefaultValueMetadata<T>.DefaultValueCallback callback)
    Parameters
    Type Name Description
    DelegateDefaultValueMetadata.DefaultValueCallback<> callback

    The callback.

    | Improve this Doc View Source

    Properties


    KeepValue

    public override bool KeepValue { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    DefaultValueMetadata.KeepValue
    | Improve this Doc View Source

    Methods


    GetDefaultValueT(ref PropertyContainer)

    public override T GetDefaultValueT(ref PropertyContainer obj)
    Parameters
    Type Name Description
    PropertyContainer obj
    Returns
    Type Description
    T
    Overrides
    Stride.Core.DefaultValueMetadata<T>.GetDefaultValueT(Stride.Core.PropertyContainer)

    Inherited Members

    DefaultValueMetadata<T>.GetDefaultValue(PropertyContainer)
    DefaultValueMetadata.PropertyUpdateCallback
    DefaultValueMetadata.Static<T>(T, Boolean)
    DefaultValueMetadata.Delegate<T>(DelegateDefaultValueMetadata.DefaultValueCallback<>)

    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