Method AddOrUpdateValue
AddOrUpdateValue<T>(Section, FieldDescriptor, T)
Adds or updates the value of the specified field of the specified section.
public static void AddOrUpdateValue<T>(this Section section, FieldDescriptor fieldDescriptor, T value)
Parameters
section
SectionThe section that holds the field.
fieldDescriptor
FieldDescriptorThe field descriptor ID of the field to add or update.
value
TThe value.
Type Parameters
T
The type of the value.
Remarks
Adds or updates the specified Section with a FieldValue that points to the given fieldDescriptor
and contains a ValueWrapper<T> with value value
.
Exceptions
- ArgumentNullException
section
orfieldDescriptor
is null.