mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14:11:10 +00:00
Adds refactoring
This commit is contained in:
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
|
||||
}
|
||||
Reference in new issue
Block a user