All notable changes to this project will be documented in this file.
- Option
TryParse
for:bool
,byte
,short
,int
,long
,decimal
,double
,float
,Guid
,DateTimeOffset
,DateTime
,DateOnly
,TimeOnly
,TimeSpan
,Enum
(ex:intOption.TryParse
). ModelStateDictionary.AddResultErrors()
extension method to addResult
errors to theModelStateDictionary
.ValidationOption<T>
for scenarios non-message based validation scenarios.
- Option.NoneValue, Option.NoneValueAsync properties.
Option<T>.TryGet(out T result)
to safely provide the internal value. A return value indicates whether or not the Option was Some(x) or None.Option<T>.ToString(string defaultValue, string? format = null, IFormatProvider? provider = null)
to minimize code required to execute ToString against the inner value safely (i.e., replaces Map -> ToString -> DefaultValue chain).
Hello world!