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
sectionSectionThe section that holds the field.
fieldDescriptorFieldDescriptorThe field descriptor ID of the field to add or update.
valueTThe value.
Type Parameters
TThe 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
sectionorfieldDescriptoris null.