Know thy self (thru Reflection)
I like to display the version number in the status bar of my applications. Here’s a way to get that information at run-time via reflection.
private void DisplayVersion()
{
Version v = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
lblVersion.Content = "v" + v.Major + "." + v.Minor + "." + v.Build + "." + v.Revision;
}
