Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    DefaultValueMetadata<T> Class

    Namespace: Stride.Core
    Assembly: Stride.Core.dll
    System.Object → PropertyKeyMetadata → DefaultValueMetadata → DefaultValueMetadata<T>
    Derived from DefaultValueMetadata<T>: DelegateDefaultValueMetadata<T> StaticDefaultValueMetadata<T>

    public abstract class DefaultValueMetadata<T> : DefaultValueMetadata
    Type Parameters
    Name Description
    T
    Name Description
    Methods
    GetDefaultValue(ref PropertyContainer)
    GetDefaultValueT(ref PropertyContainer)

    Gets the default value of an external property, and specify if this default value should be kept. It could be usefull with properties with default values depending of its container, especially if they are long to generate. An example would be collision data, which should be generated only once.

    | Improve this Doc View Source

    Methods


    GetDefaultValue(ref PropertyContainer)

    public override object GetDefaultValue(ref PropertyContainer obj)
    Parameters
    Type Name Description
    PropertyContainer obj
    Returns
    Type Description
    System.Object
    Overrides
    DefaultValueMetadata.GetDefaultValue(ref PropertyContainer)

    GetDefaultValueT(ref PropertyContainer)

    Gets the default value of an external property, and specify if this default value should be kept. It could be usefull with properties with default values depending of its container, especially if they are long to generate. An example would be collision data, which should be generated only once.

    public abstract T GetDefaultValueT(ref PropertyContainer obj)
    Parameters
    Type Name Description
    PropertyContainer obj

    The property container.

    Returns
    Type Description
    T

    The default value.


    Inherited Members

    DefaultValueMetadata.KeepValue
    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