Table of Contents

Class EnumExtensions

Namespace
Ubiety.Dns.Core.Common.Extensions
Assembly
Ubiety.Dns.Core.dll

Provides extension methods for operations related to enumerations in the DNS core library.

public static class EnumExtensions
Inheritance
EnumExtensions
Inherited Members

Methods

GetRecord(RecordType, RecordReader, int)

Retrieves a record instance of the specified type, using the provided resource reader and optional length.

public static Record GetRecord(this RecordType type, RecordReader reader, int length = 0)

Parameters

type RecordType

The type of the DNS record to retrieve.

reader RecordReader

The resource reader used to create the record.

length int

The length of the record, used for certain record types. Defaults to 0.

Returns

Record

An instance of the Record class for the specified record type.