Table of Contents

Class FieldSources

Namespace
SEBT.Portal.Core.StateBackends.Configuration.Operations
Assembly
SEBT.Portal.Core.dll

One-or-more source property names for From; hydrates from scalar or sequence YAML.

public sealed class FieldSources
Inheritance
object
FieldSources

Constructors

FieldSources(IReadOnlyList<string>)

public FieldSources(IReadOnlyList<string> sources)

Parameters

sources IReadOnlyList<string>

Properties

All

All source property names, in declared order.

public IReadOnlyList<string> All { get; }

Property Value

IReadOnlyList<string>

Single

The single source; throws when the mapping names more than one.

public string Single { get; }

Property Value

string

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<string> GetEnumerator()

Returns

IEnumerator<string>

An enumerator that can be used to iterate through the collection.

Operators

implicit operator string?(FieldSources?)

public static implicit operator string?(FieldSources? sources)

Parameters

sources FieldSources

Returns

string

implicit operator FieldSources(string)

public static implicit operator FieldSources(string source)

Parameters

source string

Returns

FieldSources

implicit operator FieldSources(string[])

public static implicit operator FieldSources(string[] sources)

Parameters

sources string[]

Returns

FieldSources