Init(args)
Scripting Reference
Loading...
Searching...
No Matches
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 > ([DisallowNull] TClient client, [DisallowNull] string memberName, [AllowNull] TArgument value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client.
 
static void Inject< TClient, TFirstArgument, TSecondArgument > ([DisallowNull] TClient client, [DisallowNull] string memberName, [AllowNull] object value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client.
 
static void Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument > ([DisallowNull] TClient client, [DisallowNull] string memberName, [AllowNull] object value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client.
 
static void Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > ([DisallowNull] TClient client, [DisallowNull] string memberName, [AllowNull] object value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client.
 
static void Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > ([DisallowNull] TClient client, [DisallowNull] string memberName, [AllowNull] object value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client.
 
static void Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument > ([DisallowNull] TClient client, [DisallowNull] string memberName, [AllowNull] object value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client.
 
static void Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument > ([DisallowNull] TClient client, [DisallowNull] string memberName, [AllowNull] object value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client.
 
static void Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument > ([DisallowNull] TClient client, [DisallowNull] string memberName, [AllowNull] object value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client.
 
static void Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument > ([DisallowNull] TClient client, [DisallowNull] string memberName, [AllowNull] object value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client.
 
static void Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument > ([DisallowNull] TClient client, [DisallowNull] string memberName, [AllowNull] object value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client.
 
static void Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument > ([DisallowNull] TClient client, [DisallowNull] string memberName, [AllowNull] object value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client.
 
static void Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument, TTwelfthArgument > ([DisallowNull] TClient client, [DisallowNull] string memberName, [AllowNull] object value)
 Assigns an argument received during initialization of client to an instance field or property by given name found on the client.
 
static string GetConstructorArgumentTargetFieldName ([DisallowNull] Type classType, [DisallowNull] Type parameterType)
 Gets the name of the field or property into which the parameter constructor argument accepted by the object of type classType is assigned to in the constructor of the object.
 
static bool IsClassMemberSerialized ([DisallowNull] Type classType, [DisallowNull] string memberName)
 Returns a value indicating whether or not field or property by name memberName on class classType is serialized or not.