| GetConstructorArgumentTargetFieldName |
| Inject< TClient, TArgument > |
| Inject< TClient, TFirstArgument, TSecondArgument > |
| Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument > |
| Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > |
| Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > |
| Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument > |
| Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument > |
| Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument > |
| Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument > |
| Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument > |
| Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument > |
| Inject< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument, TTwelfthArgument > |
| IsClassMemberSerialized |
|
◆ GetConstructorArgumentTargetFieldName()
| static string Sisus.Init.Reflection.InjectionUtility.GetConstructorArgumentTargetFieldName |
( |
[DisallowNull] Type | classType, |
|
|
[DisallowNull] Type | parameterType ) |
|
static |
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.
Uses reflection to figure out the name by searching for a field or property with their name closely matching that of the parameter , or failing that, their type matching the type of the parameter exactly.
- Parameters
-
| classType | Type of the class containing the field. |
| parameterType | The type of the constructor parameter. |
- Returns
- The name of an instance field or property matching the parameter .
- Exceptions
-
| MissingMemberException | Thrown if no field or property is found with their name closely matching that of the parameter or their type matching the type of the parameter exactly. |
| AmbiguousMatchException | Thrown if no field or property is found with their name closely matching that of the parameter , and more than one field or property is found with their type matching the type of the parameter exactly. |
|