Boot from VHD – What worked for us

My son and I spent most of the day yesterday trying to get our laptops to boot from a VHD.  We found loads of posts on the Internet that showed how it should be done, but we couldn’t make it work.  When we finally were successful, we found what we believe is an easier process, at…

0

Get the name of the current property or method

I often need to obtain the name of the current property of method, and I have historically used reflection for this.  However, I recently ran across the CallerMemberName attribute. This lead me to create the following utility function: Public Shared Function GetMethodOrPropertyName( <CallerMemberName> Optional memberName As String = Nothing)  As String     Return memberName End Function The key here is that I do not specify the memberName parameter when…

0