[Mono-bugs] [Bug 80660][Wis] New - System.OperatingSystem - Problem
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Jan 29 17:01:50 EST 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by mail_privat at yahoo.de.
http://bugzilla.ximian.com/show_bug.cgi?id=80660
--- shadow/80660 2007-01-29 17:01:50.000000000 -0500
+++ shadow/80660.tmp.17225 2007-01-29 17:01:50.000000000 -0500
@@ -0,0 +1,85 @@
+Bug#: 80660
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: mail_privat at yahoo.de
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: System.OperatingSystem - Problem
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+[Task:File=/home/.../.../Main.cs, Line=29, Column=43, Type=Error,
+Description=`System.PlatformID' does not contain a definition for
+`Unix'(CS0117)
+
+Steps to reproduce the problem:
+
+1. Try to reproduce the following example code from the MSDN Site:
+************************************************************************
+// This example demonstrates the PlatformID enumeration.
+using System;
+
+class Sample
+{
+ public static void Main()
+ {
+ string msg1 = "This is a Windows operating system.";
+ string msg2 = "This is a Unix operating system.";
+ string msg3 = "ERROR: This platform identifier is invalid.";
+
+// Assume this example is run on a Windows operating system.
+
+ OperatingSystem os = Environment.OSVersion;
+ PlatformID pid = os.Platform;
+ switch (pid)
+ {
+ case PlatformID.Win32NT:
+ case PlatformID.Win32S:
+ case PlatformID.Win32Windows:
+ case PlatformID.WinCE:
+ Console.WriteLine(msg1);
+ break;
+ case PlatformID.Unix:
+ Console.WriteLine(msg2);
+ break;
+ default:
+ Console.WriteLine(msg3);
+ break;
+ }
+ }
+}
+/*
+This example produces the following results:
+
+This is a Windows operating system.
+*/
+************************************************************************
+2.
+3.
+
+Actual Results:
+
+The error message above if one trys to compare anything with
+PlatformID.Unix (for example)
+
+Expected Results:
+
+a comparsion
+
+How often does this happen?
+
+As often as I want (but it bores after some time)
+
+Additional Information:
More information about the mono-bugs
mailing list