StrangeIoC  0.6.0
The IoC/Binding Framework for Unity3D and C#
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | Properties | List of all members
PostConstruct Class Reference

The [PostConstruct] attribute marks one or more methods as PostConstructors. More...

Inheritance diagram for PostConstruct:

Public Member Functions

 PostConstruct (int p)
 

Properties

int priority [get, set]
 

Detailed Description

The [PostConstruct] attribute marks one or more methods as PostConstructors.

A PostConstructor is triggered immediately after injection. This allows you to use use a PostConstructor in much the same way as a Constructor, safe in the knowledge that there will be no null pointers on injected dependencies. PostConstructors do not accept arguments.

You may optionally include a priority int on your PostConstructor. This allows for multiple PostConstruction methods which will fire in a predictable order.


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