We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c10982 commit 92a85edCopy full SHA for 92a85ed
Kaitai.Struct.Runtime/ImplicitNullable.cs
@@ -7,7 +7,7 @@ namespace Kaitai
7
public struct ImplicitNullable<T> where T : struct
8
{
9
public bool HasValue { get { return this._value.HasValue; } }
10
- public T Value { get { return this._value.Value; } }
+ public T Value { get => this._value ?? default; }
11
12
public ImplicitNullable(T value) : this() { this._value = value; }
13
public ImplicitNullable(T? value) : this() { this._value = value; }
0 commit comments