Search Results for

    Show / Hide Table of Contents

    Class BindObject

    Custom attribute used to connect two Component instances.

    Inheritance
    object
    Attribute
    EvergineAttributeBase
    IgnoreEvergineAttribute
    BindObject
    BindComponent
    BindEntity
    BindSceneManager
    BindService
    Namespace: Evergine.Framework.Dependencies
    Assembly: Evergine.Framework.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
    public abstract class BindObject : IgnoreEvergineAttribute

    Constructors

    BindObject()

    Initializes a new instance of the BindObject class.

    Declaration
    public BindObject()

    BindObject(bool)

    Initializes a new instance of the BindObject class.

    Declaration
    public BindObject(bool isRequired)
    Parameters
    Type Name Description
    bool isRequired

    Specifies whether this binding is required.

    Fields

    IsRequired

    Indicates whether this binding is required.

    Declaration
    protected bool IsRequired
    Field Value
    Type Description
    bool

    Methods

    Resolve(DependencyObject, Type)

    Resolves this binding with the specified object.

    Declaration
    public abstract object Resolve(DependencyObject instance, Type propertyType)
    Parameters
    Type Name Description
    DependencyObject instance

    The object to resolve.

    Type propertyType

    The property type.

    Returns
    Type Description
    object

    The resulting object.

    ResolveCollection(DependencyObject, Type)

    Resolves this binding with the specified object.

    Declaration
    public abstract IEnumerable<object> ResolveCollection(DependencyObject instance, Type propertyType)
    Parameters
    Type Name Description
    DependencyObject instance

    The object to resolve.

    Type propertyType

    The type of the property.

    Returns
    Type Description
    IEnumerable<object>

    The collection.

    Extension Methods

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