mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 19:21:10 +00:00
Continues core Domain structure modeling
This commit is contained in:
1 parent
c39652066e
commit
50c15cf889
54 files changed
+2318
-159
No files matched your search
@@ -12,7 +12,14 @@ public readonly struct Optional<T>
|
||||
#endregion
|
||||
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this structure has a value.
|
||||
/// </summary>
|
||||
public bool HasValue { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the value represented by this structure.
|
||||
/// </summary>
|
||||
public T Value
|
||||
{
|
||||
get
|
||||
@@ -24,7 +31,7 @@ public readonly struct Optional<T>
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Overload C-tor.
|
||||
/// Initializes a new instance of the <see cref="Optional{T}"/> structure.
|
||||
/// </summary>
|
||||
/// <param name="value">The value represented by this structure.</param>
|
||||
public Optional(T value)
|
||||
|
||||
Reference in new issue
Block a user