Table of Contents

Class KNetConnectExtensions

Namespace
MASES.KNet.Connect
Assembly
MASES.KNet.dll

Some extension method helping to convert types

public static class KNetConnectExtensions
Inheritance
KNetConnectExtensions
Inherited Members

Methods

CastTo<TValue>(IEnumerable<SinkRecord>)

public static IEnumerable<SinkRecord<object, TValue>> CastTo<TValue>(this IEnumerable<SinkRecord> source)

Parameters

source IEnumerable<SinkRecord>

The IEnumerable<T> to convert

Returns

IEnumerable<SinkRecord<object, TValue>>

Type Parameters

TValue

CastTo<TKey, TValue>(IEnumerable<SinkRecord>)

public static IEnumerable<SinkRecord<TKey, TValue>> CastTo<TKey, TValue>(this IEnumerable<SinkRecord> source)

Parameters

source IEnumerable<SinkRecord>

The IEnumerable<T> to convert

Returns

IEnumerable<SinkRecord<TKey, TValue>>

Type Parameters

TKey
TValue

Convert<TKey, TValue>(IEnumerable<SourceRecord<TKey, TValue>>)

public static List<SourceRecord> Convert<TKey, TValue>(this IEnumerable<SourceRecord<TKey, TValue>> source)

Parameters

source IEnumerable<SourceRecord<TKey, TValue>>

The IEnumerable<T> of SourceRecord<TKey, TValue> to convert

Returns

List<SourceRecord>

Type Parameters

TKey
TValue

Convert<TKeySource, TOffset, TKey, TValue>(IEnumerable<SourceRecord<TKeySource, TOffset, TKey, TValue>>)

public static List<SourceRecord> Convert<TKeySource, TOffset, TKey, TValue>(this IEnumerable<SourceRecord<TKeySource, TOffset, TKey, TValue>> source)

Parameters

source IEnumerable<SourceRecord<TKeySource, TOffset, TKey, TValue>>

The IEnumerable<T> of SourceRecord<TKeySource, TOffset, TKey, TValue> to convert

Returns

List<SourceRecord>

Type Parameters

TKeySource
TOffset
TKey
TValue

From<TKey, TValue>(SourceRecord<TKey, TValue>)

public static SourceRecord From<TKey, TValue>(this SourceRecord<TKey, TValue> source)

Parameters

source SourceRecord<TKey, TValue>

The SourceRecord<TKey, TValue> to convert

Returns

SourceRecord

Type Parameters

TKey
TValue

From<TKeySource, TOffset, TKey, TValue>(SourceRecord<TKeySource, TOffset, TKey, TValue>)

public static SourceRecord From<TKeySource, TOffset, TKey, TValue>(this SourceRecord<TKeySource, TOffset, TKey, TValue> source)

Parameters

source SourceRecord<TKeySource, TOffset, TKey, TValue>

The SourceRecord<TKeySource, TOffset, TKey, TValue> to convert

Returns

SourceRecord

Type Parameters

TKeySource
TOffset
TKey
TValue