зеркало из https://github.com/mono/mail-archives.git
109 строки
3.4 KiB
HTML
109 строки
3.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 21090] New - 'string' can't be used to invoke static members of 'System.String'
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:bugzilla-daemon%40rocky.ximian.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="000023.html">
|
|
<LINK REL="Next" HREF="000025.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 21090] New - 'string' can't be used to invoke static members of 'System.String'
|
|
</H1>
|
|
<B>bugzilla-daemon@rocky.ximian.com
|
|
</B>
|
|
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
|
|
TITLE="[Mono-bugs] [Bug 21090] New - 'string' can't be used to invoke static members of 'System.String'">bugzilla-daemon@rocky.ximian.com
|
|
</A><BR>
|
|
<I>26 Feb 2002 19:15:04 -0000</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="000023.html">[Mono-bugs] [Bug 21083] New - Undefined interface base type
|
|
</A></li>
|
|
<LI> Next message: <A HREF="000025.html">[Mono-bugs] [Bug 21092] New - Error declaring interface property Set member.
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#24">[ date ]</a>
|
|
<a href="thread.html#24">[ thread ]</a>
|
|
<a href="subject.html#24">[ subject ]</a>
|
|
<a href="author.html#24">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>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 <A HREF="mailto:f_ai@hotmail.com.">f_ai@hotmail.com.</A>
|
|
|
|
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=21090">http://bugzilla.ximian.com/show_bug.cgi?id=21090</A>
|
|
|
|
--- 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: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
|
|
+ReportedBy: <A HREF="mailto:f_ai@hotmail.com">f_ai@hotmail.com</A>
|
|
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
|
|
+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);
|
|
+ }
|
|
+ }
|
|
+}
|
|
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="000023.html">[Mono-bugs] [Bug 21083] New - Undefined interface base type
|
|
</A></li>
|
|
<LI> Next message: <A HREF="000025.html">[Mono-bugs] [Bug 21092] New - Error declaring interface property Set member.
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#24">[ date ]</a>
|
|
<a href="thread.html#24">[ thread ]</a>
|
|
<a href="subject.html#24">[ subject ]</a>
|
|
<a href="author.html#24">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|