Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDick Porter <dick@acm.org>2008-03-26 15:45:56 +0300
committerDick Porter <dick@acm.org>2008-03-26 15:45:56 +0300
commit61df680295fe9c8da6900e491f0e9759da610cd9 (patch)
treef95bab17967d19c69481d9470d260c8a0d47bc2f /mcs/class/System/System.Diagnostics/FileVersionInfo.cs
parent3b8d404393d2e9ed0cf09049584164cb45c170e8 (diff)
2008-03-26 Dick Porter <dick@ximian.com>
* FileVersionInfo.cs: Patch from Gert Driesen (gert.driesen@pandora.be) for bug 355717. svn path=/trunk/mcs/; revision=99024
Diffstat (limited to 'mcs/class/System/System.Diagnostics/FileVersionInfo.cs')
-rw-r--r--mcs/class/System/System.Diagnostics/FileVersionInfo.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/class/System/System.Diagnostics/FileVersionInfo.cs b/mcs/class/System/System.Diagnostics/FileVersionInfo.cs
index 96af7f2e64f..8a292f9cf64 100644
--- a/mcs/class/System/System.Diagnostics/FileVersionInfo.cs
+++ b/mcs/class/System/System.Diagnostics/FileVersionInfo.cs
@@ -73,6 +73,23 @@ namespace System.Diagnostics {
private FileVersionInfo ()
{
+#if NET_2_0
+ // no nulls (for unavailable items)
+ comments = null;
+ companyname = null;
+ filedescription = null;
+ filename = null;
+ fileversion = null;
+ internalname = null;
+ language = null;
+ legalcopyright = null;
+ legaltrademarks = null;
+ originalfilename = null;
+ privatebuild = null;
+ productname = null;
+ productversion = null;
+ specialbuild = null;
+#else
// no nulls (for unavailable items)
comments = String.Empty;
companyname = String.Empty;
@@ -88,6 +105,7 @@ namespace System.Diagnostics {
productname = String.Empty;
productversion = String.Empty;
specialbuild = String.Empty;
+#endif
// This is here just to shut the compiler up
isdebug=false;
ispatched=false;