Methods can access call site info as parameter (CallerInfo)
Intrigued, some google-fu revealed that Anders Hejlberg demoed this in his session at
build - new attributes
[CallerMemberName], available for use on method parameters and automatically filled in by the
The immediate use that springs to mind is for the implementation of the
Note how we no longer need to pass the name of the property as a magic string to
the compiler will fill it in for us.
I’m sure there’ll be more inventive uses though …