Question on displaying Version

  • Thread starter Thread starter krallabandi
  • Start date Start date
K

krallabandi

How the below statement get the version?

labelVersion.Text = "Version: " +
System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();

Please respond.

Thanks
 
How the below statement get the version?

labelVersion.Text = "Version: " +
System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
It calls the setter of the property Text of the labelVersion instance with
the result of the call to the method Concat of the class System.String with
the string "Version: " and the result of the call to the method ToString on
the result of the getter of the Version property of the result of a call to
the GetName method on the result of the call to the GetExecutingAssembly
method on the class System.Reflection.Assembly.

Otherwise, you'll have to be more specific about what exactly you don't
understand about the code. It's all documented in the MSDN.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top