Table of Contents

TryGetValueBinding

Methods
public static bool TryGetValueBinding<TComponent, TBinding>(this CoherenceSync sync, string bindingName, out ValueBinding<TBinding> returnBinding) where TComponent : Component

Get the first value binding on the component of a specific type.

Parameters
Type Name Description
CoherenceSync sync

The CoherenceSync instance.

string bindingName

The name that identifies the binding.

ValueBinding<TBinding> returnBinding

The value binding, if found.

Returns
Type Description
bool

true if a value binding is found. false otherwise.

Type Parameters
Name Description
TComponent

The component type (must derive from Component).

TBinding

The value type of the binding.