Adds refactoring

This commit is contained in:
BinaryAlley committed 2024-08-26 23:32:38 +03:00
1 parent 8b729cc16c
commit ddfaaefa27
39 files changed
+673 -396

No files matched your search

@@ -91,5 +91,14 @@ public readonly struct Optional<T>
{
return value.HasValue ? Some(value.Value) : None();
}
/// <summary>
/// Customized ToString() method.
/// </summary>
/// <returns>Custom string value showing relevant data for current class.</returns>
public override string ToString()
{
return HasValue ? Value?.ToString()! : string.Empty;
}
#endregion
}