Class LoadableDependencyLink<T>
Represents a dependency link between an IDependencyObject and an ILoadable that implements IDependencyObject.
Implements
Namespace: Evergine.Common
Assembly: Evergine.Common.dll
Syntax
public class LoadableDependencyLink<T> : IDependencyLink where T : class, ILoadable, IDependencyObject
Type Parameters
Name | Description |
---|---|
T | The type of ILoadable. |
Constructors
LoadableDependencyLink(IDependencyObject, T, MethodInfo, object[])
Initializes a new instance of the LoadableDependencyLink<T> class.
Declaration
public LoadableDependencyLink(IDependencyObject source, T target, MethodInfo methodInfo, object[] parameters)
Parameters
Type | Name | Description |
---|---|---|
IDependencyObject | source | The source. |
T | target | The target. |
MethodInfo | methodInfo | The method information. |
object[] | parameters | The parameters. |
Properties
Type
Gets the dependency link type.
Declaration
public DependencyLinkTypes Type { get; }
Property Value
Type | Description |
---|---|
DependencyLinkTypes |
Value
Gets or sets the value.
Declaration
public T Value { get; set; }
Property Value
Type | Description |
---|---|
T |
Methods
IsTheSameLink(IDependencyObject, MethodInfo, object[])
Determines whether this instance represents the link for the specified parameters.
Declaration
public bool IsTheSameLink(IDependencyObject source, MethodInfo methodInfo, object[] parameters)
Parameters
Type | Name | Description |
---|---|---|
IDependencyObject | source | The source. |
MethodInfo | methodInfo | The method information. |
object[] | parameters | The parameters. |
Returns
Type | Description |
---|---|
bool |
|
Register()
Registers this instance.
Declaration
public void Register()
SetTarget(T)
Sets the target without invoking the update method.
Declaration
public void SetTarget(T target)
Parameters
Type | Name | Description |
---|---|---|
T | target | The target. |
Unregister(IDependencyObject)
Unregisters this instance from the dependency list of the source and target.
Declaration
public void Unregister(IDependencyObject caller)
Parameters
Type | Name | Description |
---|---|---|
IDependencyObject | caller | The caller. |