docs.unity.cn
    Show / Hide Table of Contents

    Interface IVisit<TContainer, TValue>

    Implement this interface to intercept the visitation for a specific and pair.

    Namespace: Unity.Properties.Adapters
    Syntax
    public interface IVisit<TContainer, TValue> : IPropertyVisitorAdapter
    Type Parameters
    Name Description
    TContainer

    The container type being visited.

    TValue

    The value type being visited.

    Remarks
    • IVisit<TValue>
    • IVisit

    Methods

    Visit(Property<TContainer, TValue>, ref TContainer, ref TValue)

    Invoked when the visitor encounters specific a and pair.

    Declaration
    VisitStatus Visit(Property<TContainer, TValue> property, ref TContainer container, ref TValue value)
    Parameters
    Type Name Description
    Property<TContainer, TValue> property

    The property being visited.

    TContainer container

    The container being visited.

    TValue value

    The value being visited.

    Returns
    Type Description
    VisitStatus

    The return status of the adapter.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, January 26, 2022
    Terms of use