I have the following line of code in c#.
Check.ThatIsNotAnEmptyString(line1, () => { throw new InvalidAddressException("An address must have a street"); });
I am having difficulty converting it to vb.net.
I used the conversion tool 'www.developerfusion.com' but it produces the following piece of code.
Check.ThatIsNotAnEmptyString(line1, Function() Throw New InvalidAddressException("An address must have a street") End Function)
It complains on the word 'Throw' saying expression expected.
Can anyone tell me if converting this to vb.net is possible.