Method GetOrInitializeListFieldValue
- Namespace
- Skyline.DataMiner.Utils.DOM.Extensions
- Assembly
- Skyline.DataMiner.Utils.DOM.dll
GetOrInitializeListFieldValue<T>(ISectionContainer, SectionDefinition, FieldDescriptor)
Gets or initializes a list field value within a section by definition.
public static ListValueWrapper<T> GetOrInitializeListFieldValue<T>(this ISectionContainer container, SectionDefinition sectionDefinition, FieldDescriptor fieldDescriptor)
Parameters
container
ISectionContainerThe ISectionContainer instance.
sectionDefinition
SectionDefinitionThe definition of the section.
fieldDescriptor
FieldDescriptorThe descriptor of the field.
Returns
- ListValueWrapper<T>
The list field value.
Type Parameters
T
The type of the list elements.
GetOrInitializeListFieldValue<T>(ISectionContainer, SectionDefinitionID, FieldDescriptorID)
Gets or initializes a list field value within a section by definition ID.
public static ListValueWrapper<T> GetOrInitializeListFieldValue<T>(this ISectionContainer container, SectionDefinitionID sectionDefinitionID, FieldDescriptorID fieldDescriptorID)
Parameters
container
ISectionContainerThe ISectionContainer instance.
sectionDefinitionID
SectionDefinitionIDThe ID of the section definition.
fieldDescriptorID
FieldDescriptorIDThe ID of the field descriptor.
Returns
- ListValueWrapper<T>
The list field value.
Type Parameters
T
The type of the list elements.