Search Results for

    Show / Hide Table of Contents

    Class DependencyLink

    Represents a dependency link between two objects. If one of the objects is deleted, the link must be removed.

    Inheritance
    object
    DependencyLink
    Implements
    IDependencyLink
    Namespace: Evergine.Framework.Dependencies
    Assembly: Evergine.Framework.dll
    Syntax
    public class DependencyLink : IDependencyLink

    Constructors

    DependencyLink(DependencyObject, DependencyObject, Resolver)

    Initializes a new instance of the DependencyLink class.

    Declaration
    public DependencyLink(DependencyObject source, DependencyObject target, Resolver resolver)
    Parameters
    Type Name Description
    DependencyObject source

    The source.

    DependencyObject target

    The target.

    Resolver resolver

    The resolver.

    Fields

    Resolver

    The property resolver.

    Declaration
    public readonly Resolver Resolver
    Field Value
    Type Description
    Resolver

    Source

    The source of the dependency link.

    Declaration
    public readonly DependencyObject Source
    Field Value
    Type Description
    DependencyObject

    Target

    The target of the dependency link.

    Declaration
    public readonly DependencyObject Target
    Field Value
    Type Description
    DependencyObject

    Properties

    IsRequired

    Gets a value indicating whether this dependency is required.

    Declaration
    public bool IsRequired { get; }
    Property Value
    Type Description
    bool

    MemberName

    Gets the name of the member of the dependency link.

    Declaration
    public string MemberName { get; }
    Property Value
    Type Description
    string

    Type

    Gets the dependency link type.

    Declaration
    public DependencyLinkTypes Type { get; }
    Property Value
    Type Description
    DependencyLinkTypes

    Methods

    Register()

    Registers this instance in the dependency list of source and target.

    Declaration
    public void Register()

    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.

    Implements

    IDependencyLink

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX