PropertyContainer.TryAccept

Declaration

public static bool TryAccept(Unity.Properties.IPropertyBagVisitor visitor, ref TContainer container, Unity.Properties.VisitParameters parameters);

Parameters

visitor The visitor.
container The container to visit.
parameters The visit parameters to use.

Returns

bool <see langword="true" /> if the visitation succeeded; <see langword="false" /> otherwise.

Description

Tries to visit the specified <paramref name="container" /> by ref using the specified <paramref name="visitor" />.


Declaration

public static bool TryAccept(Unity.Properties.IPropertyBagVisitor visitor, ref TContainer container, out Unity.Properties.VisitReturnCode returnCode, Unity.Properties.VisitParameters parameters);

Parameters

visitor The visitor.
container The container to visit.
parameters The visit parameters to use.
returnCode When this method returns, contains the return code.

Returns

bool <see langword="true" /> if the visitation succeeded; <see langword="false" /> otherwise.

Description

Tries to visit the specified <paramref name="container" /> by ref using the specified <paramref name="visitor" />.


Declaration

public static bool TryAccept(Unity.Properties.IPropertyVisitor visitor, ref TContainer container, ref Unity.Properties.PropertyPath path, out Unity.Properties.VisitReturnCode returnCode, Unity.Properties.VisitParameters parameters);

Parameters

visitor The visitor.
container The container to visit.
path The property path to visit.
returnCode When this method returns, contains the return code.
parameters The visit parameters to use.

Description

Visit the specified <paramref name="container" /> using the specified <paramref name="visitor" /> at the given PropertyPath.


Did you find this page useful? Please give it a rating: