Class PropertyBag<TContainer> | Properties | 0.10.4-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class PropertyBag<TContainer>

    Inheritance
    Object
    PropertyBag<TContainer>
    ReflectedPropertyBag<TContainer>
    CustomDataBarPropertyBag
    CustomDataFooPropertyBag
    TestArrayContainerPropertyBag
    TestInterfaceContainerPropertyBag
    TestListContainerPropertyBag
    TestNestedContainerPropertyBag
    TestPrimitiveContainerPropertyBag
    Namespace: Unity.Properties
    Syntax
    public abstract class PropertyBag<TContainer> : IPropertyBag<TContainer>, IPropertyBag
    Type Parameters
    Name Description
    TContainer

    Methods

    Accept<TVisitor>(ref TContainer, ref TVisitor, ref ChangeTracker)

    Declaration
    public abstract void Accept<TVisitor>(ref TContainer container, ref TVisitor visitor, ref ChangeTracker changeTracker)
        where TVisitor : IPropertyVisitor
    Parameters
    Type Name Description
    TContainer container
    TVisitor visitor
    ChangeTracker changeTracker
    Type Parameters
    Name Description
    TVisitor
    Implements
    IPropertyBag<TContainer>.Accept<TVisitor>(ref TContainer, ref TVisitor, ref ChangeTracker)

    Accept<TVisitor>(ref Object, ref TVisitor, ref ChangeTracker)

    Declaration
    public void Accept<TVisitor>(ref object container, ref TVisitor visitor, ref ChangeTracker changeTracker)
        where TVisitor : IPropertyVisitor
    Parameters
    Type Name Description
    Object container
    TVisitor visitor
    ChangeTracker changeTracker
    Type Parameters
    Name Description
    TVisitor
    Implements
    IPropertyBag.Accept<TVisitor>(ref Object, ref TVisitor, ref ChangeTracker)

    Cast<TCallback>(ref TCallback)

    Declaration
    public void Cast<TCallback>(ref TCallback callback)
        where TCallback : IContainerTypeCallback
    Parameters
    Type Name Description
    TCallback callback
    Type Parameters
    Name Description
    TCallback
    Implements
    IPropertyBag.Cast<TCallback>(ref TCallback)

    FindProperty<TAction>(String, ref TContainer, ref ChangeTracker, ref TAction)

    Declaration
    public abstract bool FindProperty<TAction>(string name, ref TContainer container, ref ChangeTracker changeTracker, ref TAction action)
        where TAction : IPropertyGetter<TContainer>
    Parameters
    Type Name Description
    String name
    TContainer container
    ChangeTracker changeTracker
    TAction action
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    TAction
    Implements
    IPropertyBag<TContainer>.FindProperty<TAction>(String, ref TContainer, ref ChangeTracker, ref TAction)

    Extension Methods

    PropertyBagUtility.HasProperty<TContainer>(IPropertyBag<TContainer>, String)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023