+2002-06-26 Martin Baulig <martin@gnome.org>
+
+ * DecimalFormatter.cs: Removed MSTEST stuff, use `System',
+ not `S = System'. This file now compiles with mcs.
+
+ * String.cs: Removed the already ifdef-outed __arglist Concat function
+ to make it compile with mcs.
+
2002-06-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* IntegerFormatter.cs:
using System.Globalization;
using System.Text;
-using S = System; // only used for switching test implementation\r
+using System;
namespace System \r
{
return true;
}
- public static string NumberToString(string format, NumberFormatInfo nfi, S.Decimal value)\r
+ public static string NumberToString(string format, NumberFormatInfo nfi, Decimal value)\r
{
char specifier;\r
int precision;\r
// get digit string\r
const int bufSize = 40;\r
int decPos = 0, sign = 0;\r
-#if !MSTEST\r
char[] buf = new char[bufSize];\r
- if (S.Decimal.decimal2string(ref value, digits, decimals, buf, bufSize, out decPos, out sign) != 0) \r
+ if (Decimal.decimal2string(ref value, digits, decimals, buf, bufSize, out decPos, out sign) != 0) \r
{\r
throw new FormatException(); // should never happen \r
}\r
string TempString = new String(buf);
TempString = TempString.Trim(new char[] {(char)0x0});
StringBuilder sb = new StringBuilder(TempString, TempString.Length);\r
-#else\r
- StringBuilder sb = new StringBuilder(bufSize);\r
- if (S.Decimal.decimal2string(ref value, digits, decimals, sb, bufSize, out decPos, out sign) != 0) \r
- {\r
- throw new FormatException(); // should never happen \r
- }\r
-#endif\r
\r
if (sb.ToString () == String.Empty && decPos > 0 && sign == 0)
sb.Append ('0');
return Concat(obj1.ToString(), obj2.ToString(), obj3.ToString());
}
- //
- // I can not find the "__arglist" argument on the spec
- //
-#if !__MonoCS__
- [CLSCompliant(false)]
- public static String Concat (Object arg0, Object arg1, Object arg2, Object arg3, __arglist) {
- throw new NotImplementedException();
- }
-#endif
-
public static String Concat(String s1, String s2) {
if (null == s1) {
if (null == s2) { return String.Empty; }