Table of Contents

Class FieldDescriptorBuilder<T>

Namespace
Skyline.DataMiner.Utils.DOM.Builders
Assembly
Skyline.DataMiner.Utils.DOM.dll

Generic builder class for creating instances of the FieldDescriptor class.

public class FieldDescriptorBuilder<T> where T : FieldDescriptorBuilder<T>

Type Parameters

T

The type of the builder class.

Inheritance
FieldDescriptorBuilder<T>
Derived
Extension Methods

Constructors

FieldDescriptorBuilder()

Initializes a new instance of the FieldDescriptorBuilder<T> class.

FieldDescriptorBuilder(FieldDescriptor)

Initializes a new instance of the FieldDescriptorBuilder<T> class with a specified field descriptor.

Fields

_fieldDescriptor

The FieldDescriptor instance being built by the builder.

Methods

Build()

Builds the field descriptor.

WithDefaultValue(IValueWrapper)

Sets the default value for the field descriptor.

WithID(FieldDescriptorID)

Sets the ID for the field descriptor.

WithID(Guid)

Sets the ID for the field descriptor using a GUID.

WithIsOptional(bool)

Sets whether the field descriptor is optional.

WithName(string)

Sets the name for the field descriptor.

WithType(Type)

Sets the type for the field descriptor.