当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - How can I put a return string value in the Text property of a text block?

问题描述:

Let's say I need to display the appliation version which is returned by a static method:

I don't know the syntax to called a static method or whether it is possible to do so. Please help.

网友答案:

You could create a dependency property and then get the version number of your assebly with this C# code.

System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString());
分享给朋友:
您可能感兴趣的文章:
随机阅读: