Forráskód Böngészése

2002-08-03 Gonzalo Paniagua Javier <[email protected]>

	* StringBuilder.cs: added IndexerName to indexer.

svn path=/trunk/mcs/; revision=6384
Gonzalo Paniagua Javier 23 éve
szülő
commit
413ae473a2

+ 4 - 0
mcs/class/corlib/System.Text/ChangeLog

@@ -1,3 +1,7 @@
+2002-08-03  Gonzalo Paniagua Javier <[email protected]>
+
+	* StringBuilder.cs: added IndexerName to indexer.
+
 2002-08-01  Jason Diamond <[email protected]>
 
 	* Encoding.cs: Use GetByteCount instead of GetMaxByteCount when

+ 3 - 0
mcs/class/corlib/System.Text/StringBuilder.cs

@@ -7,6 +7,8 @@
 // TODO: Make sure the coding complies to the ECMA draft, there's some
 // variable names that probably don't (like sString)
 //
+using System.Runtime.CompilerServices;
+
 namespace System.Text {
 	
 	[Serializable]
@@ -150,6 +152,7 @@ namespace System.Text {
 			}
 		}
 
+		[IndexerName("Chars")]
 		public char this[ int index ] {
 			get {