Struct UnmanagedProperty<TContainer, TValue> | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Struct UnmanagedProperty<TContainer, TValue>

    Namespace: Unity.Properties
    Syntax
    public struct UnmanagedProperty<TContainer, TValue> : IUnmanagedProperty, IProperty<TContainer, TValue>, IProperty where TContainer : struct where TValue : struct
    Type Parameters
    Name Description
    TContainer
    TValue

    Constructors

    UnmanagedProperty(String, Int32, Boolean, IPropertyAttributeCollection)

    Declaration
    public UnmanagedProperty(string name, int offset, bool readOnly = false, IPropertyAttributeCollection attributes = null)
    Parameters
    Type Name Description
    System.String name
    System.Int32 offset
    System.Boolean readOnly
    IPropertyAttributeCollection attributes

    Properties

    Attributes

    Declaration
    public IPropertyAttributeCollection Attributes { get; }
    Property Value
    Type Description
    IPropertyAttributeCollection
    Implements
    IProperty.Attributes

    IsContainer

    Declaration
    public bool IsContainer { get; }
    Property Value
    Type Description
    System.Boolean
    Implements
    IProperty.IsContainer

    IsReadOnly

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    System.Boolean
    Implements
    IProperty.IsReadOnly

    Offset

    Declaration
    public int Offset { get; }
    Property Value
    Type Description
    System.Int32
    Implements
    IUnmanagedProperty.Offset

    Methods

    GetName()

    Declaration
    public string GetName()
    Returns
    Type Description
    System.String
    Implements
    IProperty.GetName()

    GetValue(ref TContainer)

    Declaration
    public TValue GetValue(ref TContainer container)
    Parameters
    Type Name Description
    TContainer container
    Returns
    Type Description
    TValue
    Implements
    IProperty<TContainer, TValue>.GetValue(ref TContainer)

    SetValue(ref TContainer, TValue)

    Declaration
    public void SetValue(ref TContainer container, TValue value)
    Parameters
    Type Name Description
    TContainer container
    TValue value
    Implements
    IProperty<TContainer, TValue>.SetValue(ref TContainer, TValue)
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX