Skip to content

Commit 95f9f17

Browse files
authored
class (#176)
1 parent 8eb3c7f commit 95f9f17

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

BitFaster.Caching/Optional.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ namespace BitFaster.Caching
1010
/// <summary>
1111
/// Represents an optional value.
1212
/// </summary>
13-
public readonly struct Optional<T>
13+
public class Optional<T>
1414
{
1515
private readonly T value;
1616
private readonly bool hasValue;
1717

18+
public Optional()
19+
{
20+
}
21+
1822
public Optional(T value)
1923
{
2024
this.value = value;

0 commit comments

Comments
 (0)