Ok, bear with me on this one. I am sure I am just messing up something very simple.
I have this declared:
Then, I use it like so:
There is an error on CheckStateCondition that says,
Value of type 'System.Func(Of Boolean)' cannot be converted to 'Boolean'.
I have tried Google, where every link says I am declaring it correctly. I tried searching for the error message itself and got nothing useful. I even tried using Predicate(T) and got the same result. All I am trying to do is store a Boolean value from a lambda.
Thanks.
I have this declared:
vb.net Code:
Property CheckStateCondition As Func(Of Boolean)
Then, I use it like so:
vb.net Code:
If CheckStateCondition Then ' Do something End If
There is an error on CheckStateCondition that says,
Quote:
Value of type 'System.Func(Of Boolean)' cannot be converted to 'Boolean'.
Thanks.