C# Class DependencyInjector, Senior-Design-ALS-Social-Media

Inheritance: MonoBehaviour
Show file Open project: TheBenderman/Senior-Design-ALS-Social-Media Class Usage Examples

Public Properties

Property Type Description
components object>.Dictionary

Public Methods

Method Description
ClearCache ( ) : void
Inject ( UnityEngine.MonoBehaviour target ) : void
InjectObject ( object target ) : void
ReplaceComponent ( newComponent ) : void
Resolve ( ) : T

Private Methods

Method Description
CreateComponent ( Type, type ) : object
GetFields ( Type, type ) : FieldInfo[],
GetInjectFields ( Type, type ) : FieldInfo[],
HasInjectAttribute ( MemberInfo, member ) : bool
Resolve ( Type type ) : object

Method Details

ClearCache() public static method

public static ClearCache ( ) : void
return void

Inject() public static method

public static Inject ( UnityEngine.MonoBehaviour target ) : void
target UnityEngine.MonoBehaviour
return void

InjectObject() public static method

public static InjectObject ( object target ) : void
target object
return void

ReplaceComponent() public static method

public static ReplaceComponent ( newComponent ) : void
return void

Resolve() public static method

public static Resolve ( ) : T
return T

Property Details

components public static property

public static Dictionary components
return object>.Dictionary