Remove FluentResults, documentation

This commit is contained in:
2024-07-28 12:52:17 +02:00
parent 5d6149b18b
commit 10f411f076
25 changed files with 224 additions and 44 deletions

View File

@@ -81,7 +81,14 @@ public record StatisticSet<T> : ImmutableStatisticSet<T>
{
}
/// <summary>
/// Helper function to add two numerics together.
/// </summary>
protected T Add(T a, T b) => (T)Convert.ChangeType(Convert.ToInt32(a) + Convert.ToInt32(b), typeof(T));
/// <summary>
/// Helper function to subtract two numerics.
/// </summary>
protected T Subtract(T a, T b) => (T)Convert.ChangeType(Convert.ToInt32(a) - Convert.ToInt32(b), typeof(T));
/// <summary>
@@ -214,6 +221,7 @@ public abstract record ClampedStatisticSet<T> : StatisticSet<T>
/// The minimum value for the statistics.
/// </summary>
protected abstract T Min { get; }
/// <summary>
/// The maximum value for the statistics.
/// </summary>