• Manual
  • Scripting API
  • Changelog
  • License
Show / Hide Table of Contents
  • AlchemyBow.Core
    • CoreController<TProjectContext>
    • CoreProjectContext
    • ICoreLoadable
    • ICoreLoadingCallbacksHandler
    • LoadablesProgress
    • OperationHandle
  • AlchemyBow.Core.Editor.Utilities
    • CoreEditorUtility
    • IndentStringBuilder
  • AlchemyBow.Core.Editor.Windows
    • CoreManagementWindow
  • AlchemyBow.Core.Editor.Wizards
    • CoreControllerScriptWizard
    • CoreProjectContextPrefabWizard
    • CoreProjectContextScriptWizard
    • CoreQuickStartWizard
    • ValidationMessageList
    • WizardValidationUtility
    • WizardWindow
  • AlchemyBow.Core.Extras.Behaviours
    • CoreBehaviour
    • CoreBehaviourEnablingStrategy
  • AlchemyBow.Core.Extras.FluentBindings
    • ContainerFluentExtensions
    • FluentBinding
  • AlchemyBow.Core.Extras.Installers
    • ChildrenCompositeMonoInstaller
    • UnityObjectMonoInstaller
  • AlchemyBow.Core.IoC
    • Container
    • DynamicCollectionBindingUtility
    • DynamicInjector<T>
    • IBindOnlyContainer
    • InjectAttribute
    • InjectionTargetAttribute
    • MonoInstaller
  • AlchemyBow.Core.IoC.Elements
    • DynamicInjectorBase
    • InjectionInfo
    • ReflectionFieldsSetter
  • AlchemyBow.Core.States
    • ICondition
    • IState
    • StateGraph
    • StateGraphComposer
  • AlchemyBow.Core.States.Elements
    • StateGraphLink
  • AlchemyBow.Core.States.Prototyping
    • PrototypeCondition
    • PrototypeState

Class FluentBinding

Represents a binding that can be configured with method chaining.

Inheritance
object
FluentBinding
Namespace: AlchemyBow.Core.Extras.FluentBindings
Assembly: AlchemyBow.Core.dll
Syntax
public class FluentBinding

Constructors

FluentBinding(IBindOnlyContainer, object)

Creates a new instance of the FluentBinding class.

Declaration
public FluentBinding(IBindOnlyContainer container, object instance)
Parameters
Type Name Description
IBindOnlyContainer container

The container used for binding.

object instance

The instance to bind.

Methods

AddToCoreLoadingCallbacksHandlers()

Adds the instance to the dynamic list of core loading callbacks handlers.

Declaration
public void AddToCoreLoadingCallbacksHandlers()

AddToDynamicCollectionBinding<TCollection, TItem>()

Adds the instance to the dynamic collection binding.

Declaration
public FluentBinding AddToDynamicCollectionBinding<TCollection, TItem>() where TCollection : ICollection<TItem>
Returns
Type Description
FluentBinding
Type Parameters
Name Description
TCollection
TItem

BindInaccessible()

Binds the instance as inaccessible.

Declaration
public FluentBinding BindInaccessible()
Returns
Type Description
FluentBinding

BindTo(Type)

Binds the instance to the specified type.

Declaration
public FluentBinding BindTo(Type key)
Parameters
Type Name Description
Type key
Returns
Type Description
FluentBinding

BindToSelf()

Binds the instance to its own type.

Declaration
public FluentBinding BindToSelf()
Returns
Type Description
FluentBinding

BindTo<TKey>()

Binds the instance to the specified type.

Declaration
public FluentBinding BindTo<TKey>()
Returns
Type Description
FluentBinding
Type Parameters
Name Description
TKey
In this article
Back to top Copyright © 2022-2024 AlchemyBow | Generated by DocFX