Method GetFieldValue
GetFieldValue<T>(ISectionContainer, SectionDefinition, FieldDescriptor)
Retrieves the field value of the specified field in the specified section in the specified container.
public static ValueWrapper<T> GetFieldValue<T>(this ISectionContainer container, SectionDefinition sectionDefinition, FieldDescriptor fieldDescriptor)
Parameters
container
ISectionContainerThe section container.
sectionDefinition
SectionDefinitionThe section definition.
fieldDescriptor
FieldDescriptorThe field descriptor.
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.
Remarks
Returns the value of the first Section for the given sectionDefinition
.
Exceptions
- ArgumentNullException
container
,sectionDefinition
orfieldDescriptor
is null.