Consider the following code (don't mind the design, it's just an example):
Private _value As Boolean
Public Sub SetValue(Optional getValue As Func(Of Boolean) = ... )
_value = getValue()
End Sub
How can I get this to work without using Nothing ?
For the sake of simplicity let's say I want the default value to be a function that always returns True. Can it be done? If so, can it be done inline?
Thanks in advance !