◆ GetHumanReadable()
static string FiftyOne.DeviceDetection.Examples.DataExtensions.GetHumanReadable | ( | this IAspectPropertyValue< string > | apv | ) |
static
Get a human-readable version of the specified IAspectPropertyValue.
If no value has be set, the result will be 'Unknown' + the IAspectPropertyValue.NoValueMessage.
- Parameters
-
- apv -
- Returns
◆ TryGetValue< T >()
static string FiftyOne.DeviceDetection.Examples.DataExtensions.TryGetValue< T > ( this T data, Func< T, string > function ) staticExecute the specified function on the supplied IElementData instance.
If a PropertyMissingException occurs then the resulting string will contain 'Unknown' + the message from the exception.
- Template Parameters
-
- T -
- Parameters
-
- data -
- function -
- Returns
- Type Constraints
-
T : IElementData