Table of Contents

Class CalculatedColumn<T, U>

Namespace
The.Export
Assembly
Instagile.dll
public sealed class CalculatedColumn<T, U> : IColumn where T : IEntity

Type Parameters

T
U
Inheritance
CalculatedColumn<T, U>
Implements
Inherited Members
Extension Methods

Constructors

CalculatedColumn(string, Func<T, IEnumerable<U>>, Func<T, string>?)

public CalculatedColumn(string header, Func<T, IEnumerable<U>> getValues, Func<T, string>? getText = null)

Parameters

header string
getValues Func<T, IEnumerable<U>>
getText Func<T, string>

CalculatedColumn(string, Func<T, U>, Func<T, string>?)

public CalculatedColumn(string header, Func<T, U> getValue, Func<T, string>? getText = null)

Parameters

header string
getValue Func<T, U>
getText Func<T, string>

Methods

GetHeader()

public string GetHeader()

Returns

string

GetMetadata()

public PropertyInfo? GetMetadata()

Returns

PropertyInfo

GetText(EntityKernel)

public string GetText(EntityKernel k)

Parameters

k EntityKernel

Returns

string

GetValues(EntityKernel)

public object?[] GetValues(EntityKernel k)

Parameters

k EntityKernel

Returns

object[]

PrepareExportAsync(EntityKernel, CancellationToken)

last-chance loading - no-op when preloads are done correctly, but necessary sometimes

public Task PrepareExportAsync(EntityKernel _, CancellationToken _ct)

Parameters

_ EntityKernel
_ct CancellationToken

Returns

Task