Table of Contents

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 ISectionContainer

The ISectionContainer instance.

sectionDefinition SectionDefinition

The definition of the section.

fieldDescriptor FieldDescriptor

The 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 ISectionContainer

The ISectionContainer instance.

sectionDefinitionID SectionDefinitionID

The ID of the section definition.

fieldDescriptorID FieldDescriptorID

The ID of the field descriptor.

Returns

ListValueWrapper<T>

The list field value.

Type Parameters

T

The type of the list elements.