Using Caliburn.Micro, NotifyPropertyChange (out of base class PropertyChangedBase) is demonstrated thus
NotifyOfPropertyChange(() => MyPropertyName)
Where MyPropertyName is, logically, a property of some kind. I'm not quite clear on how this works, but I guess since an anonymous function returning the property is given as parameter, CM can do some reflection magic to find the actual property name. Much more handy than passing "MyPropertyName" as string, since that's typo-prone.
My question is, how do I use this in VB.Net? The literal translation would be
NotifyOfPropertyChange(Function() MyPropertyName)
But that gives me
Cannot convert lambda expression to type 'string' because it is not a delegate type.
A similar error appears in C# when MyPropertyName is not actually a property, but always seems to appear in VB.
Can this be done in VB?