docs.unity3d.com
    Show / Hide Table of Contents

    Class ConcreteTypeVisitor

    Base class to implement a visitor responsible for getting an object's concrete type as a generic.

    Inheritance
    Object
    ConcreteTypeVisitor
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Properties
    Syntax
    public abstract class ConcreteTypeVisitor : IPropertyBagVisitor
    Remarks

    It is required that the visited object is a container type with a property bag.

    Methods

    VisitContainer<TContainer>(ref TContainer)

    Implement this method to receive the strongly typed callback for a given container.

    Declaration
    protected abstract void VisitContainer<TContainer>(ref TContainer container)
    Parameters
    Type Name Description
    TContainer container

    The reference to the container.

    Type Parameters
    Name Description
    TContainer

    The container type.

    Explicit Interface Implementations

    IPropertyBagVisitor.Visit<TContainer>(IPropertyBag<TContainer>, ref TContainer)

    Implement this method to accept visitation for a property bag and container.

    Declaration
    void IPropertyBagVisitor.Visit<TContainer>(IPropertyBag<TContainer> properties, ref TContainer container)
    Parameters
    Type Name Description
    IPropertyBag<TContainer> properties

    The properties of the container.

    TContainer container

    The container being visited.

    Type Parameters
    Name Description
    TContainer

    The container type.

    Implements
    IPropertyBagVisitor.Visit<TContainer>(IPropertyBag<TContainer>, ref TContainer)
    Remarks

    This method is invoked by Accept(IPropertyBagVisitor, ref TContainer).

    Back to top
    Terms of use
    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