Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    PropertyKey Class

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

    A class that represents a tag propety.

    System.Object → PropertyKey
    Derived from PropertyKey: PropertyKey<T> ParameterKey

    [DataContract]
    [DataSerializer(typeof(PropertyKeySerializer<>), Mode = DataSerializerGenericMode.Type)]
    public abstract class PropertyKey : IComparable
    Name Description
    Constructors
    PropertyKey(String, Type, Type, PropertyKeyMetadata[])

    Initializes a new instance of the PropertyKey class.

    Properties
    IsValueType
    Metadatas

    Gets the metadatas.

    Name

    Gets the name of this key.

    OwnerType

    Gets the type of the owner.

    PropertyType

    Gets the type of the property.

    Methods
    CompareTo(Object)
    SetupMetadata(PropertyKeyMetadata)
    SetupMetadatas()
    ToString()
    | Improve this Doc View Source

    Constructors


    PropertyKey(String, Type, Type, PropertyKeyMetadata[])

    Initializes a new instance of the PropertyKey class.

    protected PropertyKey(string name, Type propertyType, Type ownerType, params PropertyKeyMetadata[] metadatas)
    Parameters
    Type Name Description
    System.String name

    The name.

    System.Type propertyType

    Type of the property.

    System.Type ownerType

    Type of the owner.

    PropertyKeyMetadata[] metadatas

    The metadatas.

    | Improve this Doc View Source

    Properties


    IsValueType

    public abstract bool IsValueType { get; }
    Property Value
    Type Description
    System.Boolean

    Metadatas

    Gets the metadatas.

    public PropertyKeyMetadata[] Metadatas { get; }
    Property Value
    Type Description
    PropertyKeyMetadata[]

    Name

    Gets the name of this key.

    public string Name { get; protected set; }
    Property Value
    Type Description
    System.String

    OwnerType

    Gets the type of the owner.

    public Type OwnerType { get; protected set; }
    Property Value
    Type Description
    System.Type

    The type of the owner.


    PropertyType

    Gets the type of the property.

    public Type PropertyType { get; protected set; }
    Property Value
    Type Description
    System.Type

    The type of the property.

    | Improve this Doc View Source

    Methods


    CompareTo(Object)

    public int CompareTo(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Int32

    SetupMetadata(PropertyKeyMetadata)

    protected virtual void SetupMetadata(PropertyKeyMetadata metadata)
    Parameters
    Type Name Description
    PropertyKeyMetadata metadata

    SetupMetadatas()

    protected virtual void SetupMetadatas()

    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    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