Method GetValue
GetValue<T>(Section, FieldDescriptorID)
Returns the ValueWrapper<T> for the specified fieldDescriptorID
.
public static ValueWrapper<T> GetValue<T>(this Section section, FieldDescriptorID fieldDescriptorID)
Parameters
section
SectionThe section that holds the field.
fieldDescriptorID
FieldDescriptorIDThe field descriptor ID of the field to retrieve.
Returns
- ValueWrapper<T>
The value or null if the field was not found.
Type Parameters
T
The type to use for the returned ValueWrapper<T> instance.
Exceptions
- ArgumentNullException
section
orfieldDescriptorID
is null.