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

    Struct ValueProperty<TContainer, TValue>

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

    Constructors

    ValueProperty(String, ValueProperty<TContainer, TValue>.Getter, ValueProperty<TContainer, TValue>.Setter, IPropertyAttributeCollection)

    Declaration
    public ValueProperty(string name, ValueProperty<TContainer, TValue>.Getter getter, ValueProperty<TContainer, TValue>.Setter setter, IPropertyAttributeCollection attributes = null)
    Parameters
    Type Name Description
    System.String name
    ValueProperty.Getter<> getter
    ValueProperty.Setter<> setter
    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

    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