 |
UnitTestGetFieldValueT Method (Type, String) |
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Gets the data object held by a defined field of a particular type.
Namespace:
WeroSoft.UnitTesting
Assembly:
WeroSoft.UnitTesting.Library (in WeroSoft.UnitTesting.Library.dll) Version: 3.0 Pre-Release
Syntaxpublic static T GetFieldValue<T>(
Type targetType,
string fieldName
)
Parameters
- targetType
- Type: SystemType
Type on which the static field shall be get from. - fieldName
- Type: SystemString
Name of the field whose data shall be get from.
Type Parameters
- T
- Type of the data which shall be returned.
Return Value
Type:
TContent of the particular field.
Exceptions
See Also