Init(args)
Scripting Reference
List of all members | Static Public Member Functions
Sisus.Init.Reflection.InjectionUtility Class Reference

Description

Utility class for injecting values to fields and properties during initialization using reflection.

Makes it possible to assign to readonly fields and properties outside of the constructor.

Static Public Member Functions

static void Inject< TClient, TArgument > ([NotNull] TClient client, [NotNull] string memberName, [CanBeNull] TArgument value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client. More...
 
static void Inject< TClient, TFirstArgument, TSecondArgument > ([NotNull] TClient client, [NotNull] string memberName, [CanBeNull] object value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client. More...
 
static void Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument > ([NotNull] TClient client, [NotNull] string memberName, [CanBeNull] object value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client. More...
 
static void Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > ([NotNull] TClient client, [NotNull] string memberName, [CanBeNull] object value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client. More...
 
static void Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > ([NotNull] TClient client, [NotNull] string memberName, [CanBeNull] object value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client. More...