Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    DataMemberMode Enum

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

    Specify the way to store a property or field of some class or structure.

    public enum DataMemberMode

    Fields

    Name Description
    Assign

    When restored, new object is created by using the parameters in the YAML data and assigned to the property / field. When the property / filed is writeable, this is the default.

    Binary

    Only valid for a property / field that has an array type of a some value type. The content of the array is stored in a binary format encoded in base64 style.

    Content

    Only valid for a property / field that has a class or struct type. When restored, instead of recreating the whole class or struct, the members are independently restored. When the property / field is not writeable this is the default.

    Default

    Use the default mode depending on the type of the field/property.

    Never

    The property / field will not be stored.

    Extension Methods

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

    Back to top

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