[chronojump] Use ToString() method to print version number
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [chronojump] Use ToString() method to print version number
- Date: Thu, 13 Aug 2009 18:34:23 +0000 (UTC)
commit 004a85ea7406d9f51835b1899cacce053172edf5
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Aug 13 20:23:21 2009 +0200
Use ToString() method to print version number
This way version '0.9' is not printed like '0.9.0.0'
src/chronojump.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/chronojump.cs b/src/chronojump.cs
index d56c2ea..99a1b7f 100644
--- a/src/chronojump.cs
+++ b/src/chronojump.cs
@@ -582,7 +582,7 @@ Console.WriteLine("--6--");
private static string readVersion() {
Version version = Assembly.GetExecutingAssembly().GetName().Version;
- return String.Format("{0}.{1}.{2}.{3}",version.Major,version.Minor,version.Build,version.Revision);
+ return version.ToString();
}
private bool checkIfChronojumpExitAbnormally() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]