Skip to content

Commit 8c726ec

Browse files
add a generic ReferenceValue
1 parent bc7ad40 commit 8c726ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ValueSystem/ReferenceValue.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@ public override string ToString()
1212
{
1313
return $"<{Value.GetType().GetAccurateName()} reference | {Value.GetHashCode()}>";
1414
}
15+
}
16+
17+
public class ReferenceValue<T>(T? value) : ReferenceValue(value)
18+
{
19+
public new T Value => (T) base.Value;
1520
}

0 commit comments

Comments
 (0)