| ActContextGetValueT Method |
Gets the value associated with the specified name.
Namespace:
SmartTests
Assembly:
SmartTests (in SmartTests.dll) Version: 1.12.0
Syntax public T GetValue<T>(
string name
)
Public Function GetValue(Of T) (
name As String
) As T
public:
generic<typename T>
T GetValue(
String^ name
)
member GetValue :
name : string -> 'T
Parameters
- name
- Type: SystemString
The name of the value to get.
Type Parameters
- T
- The type of the value of the specified name.
Return Value
Type:
T
The value associated with the specified name.
If the specified name is not found, throws a
KeyNotFoundException.
Exceptions Remarks Do not use it directly. It is only useful for Smart Assertions development.
The best is to encapsulate this information using some extensions methods on this class; thus,
you have meaningful names and right types.
See Also