Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
pluginbase.Dependencies.DependencyAttribute Class Reference

Mark a field or a property in a class as a dependency to-be-injected More...

Inheritance diagram for pluginbase.Dependencies.DependencyAttribute:

Public Member Functions

 DependencyAttribute ()
 Default constructor for dependency More...
 

Properties

bool Optional [get, set]
 If false, the dependency injector will throw an exception if it can't find a dependency. More...
 

Detailed Description

Mark a field or a property in a class as a dependency to-be-injected

Attribute: AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)

Constructor & Destructor Documentation

pluginbase.Dependencies.DependencyAttribute.DependencyAttribute ( )

Default constructor for dependency

14  {}

Property Documentation

bool pluginbase.Dependencies.DependencyAttribute.Optional
getset

If false, the dependency injector will throw an exception if it can't find a dependency.

true if optional; otherwise, false.


The documentation for this class was generated from the following file: