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
-
objectFieldSources
Constructors
FieldSources(IReadOnlyList<string>)
public FieldSources(IReadOnlyList<string> sources)
Parameters
sourcesIReadOnlyList<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
sourcesFieldSources
Returns
- string
implicit operator FieldSources(string)
public static implicit operator FieldSources(string source)
Parameters
sourcestring
Returns
implicit operator FieldSources(string[])
public static implicit operator FieldSources(string[] sources)
Parameters
sourcesstring[]