[Mono-bugs] [Bug 21090] New - 'string' can't be used to invoke static members of 'System.String'
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
26 Feb 2002 19:15:04 -0000
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 f_ai@hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=21090
--- shadow/21090 Tue Feb 26 14:15:04 2002
+++ shadow/21090.tmp.15051 Tue Feb 26 14:15:04 2002
@@ -0,0 +1,44 @@
+Bug#: 21090
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: f_ai@hotmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: 'string' can't be used to invoke static members of 'System.String'
+
+Description of Problem:
+'string' is an alias for 'System.String' you can't use 'string' to invoke
+the static members of 'System.String'.
+
+Additional Information:
+Using snapshot of Feb-25-02
+
+Source code to reproduce the problem:
+namespace N1
+{
+ public class A
+ {
+ int x;
+ string s;
+
+ void works()
+ {
+ s = System.String.Format("{0}",x);
+ }
+
+ void fails()
+ {
+ s = string.Format("{0}",x);
+ }
+ }
+}