docs.unity.cn
    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 Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, November 9, 2022
    Terms of use