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
containerISectionContainerThe ISectionContainer instance.
sectionDefinitionSectionDefinitionThe definition of the section.
fieldDescriptorFieldDescriptorThe descriptor of the field.
Returns
- ListValueWrapper<T>
The list field value.
Type Parameters
TThe 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
containerISectionContainerThe ISectionContainer instance.
sectionDefinitionIDSectionDefinitionIDThe ID of the section definition.
fieldDescriptorIDFieldDescriptorIDThe ID of the field descriptor.
Returns
- ListValueWrapper<T>
The list field value.
Type Parameters
TThe type of the list elements.