I thought I can chain methods/properties on Nullable Types using the ?-Operator like so
Dim foo As SomeObject? = New SomeObject()
Dim bar As SomeObject? = Nothing
foo?.SomeProperty 'Returns a value
bar?.someProperty 'Returns Nothing
However, given the following special example
Structure Foo
Public Sub New(bar As Integer)
Me.Bar = bar
End Sub
Property Bar() As Integer
Public Shared Operator +(f1 As Foo, f2 As Foo) As Foo
Return New Foo(f1.Bar + f2.Bar)
End Operator
End Structure
I get an error after performing the following Operation
Dim baz1 As Foo? = New Foo(13)
Dim baz2 As Foo? = New Foo(37)
Dim baz3 = baz1 + baz2
baz3?.Bar 'error BC36637: The '?' character cannot be used here
Why is that so and more important how can I achieve the behaviour shown in my first example at the top?