Empeld
Empeld plugin documentation.
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

◆ DependencyAttribute()

pluginbase.Dependencies.DependencyAttribute.DependencyAttribute ( )

Default constructor for dependency

14  {}

Property Documentation

◆ Optional

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: