DotNet.Ships.Class.CalculationResult 1 - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
EliteDangerousAlmanac / Ships / CalculationResult<T>
Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutCalculations.cs:82
A build metric, and the evidence for whether it is complete.
The calculated value.
An incomplete result never exposes a misleading partial value, so the value is read through TryGetValue or through Value, which refuses an incomplete result rather than answering a default.
Complete:
bool
Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutCalculations.cs:94
Whether the calculation produced a value.
Issues:
IReadOnlyList<CalculationIssue>
Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutCalculations.cs:97
The missing or unavailable inputs. A complete result names none.
Value:
T
Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutCalculations.cs:103
The calculated value.
InvalidOperationException
The calculation is incomplete. Read Issues to say why.
TryGetValue(
value):bool
Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutCalculations.cs:110
Reads the value, when the calculation is complete.
out T
The calculated value, or the type's default when it is not.
bool
true when the calculation is complete.