Browse Source

[cs] Changed system.* package to cs.system.*

Caue Waneck 13 years ago
parent
commit
7b5f9ed8a3
72 changed files with 185 additions and 185 deletions
  1. 3 3
      std/cs/Lib.hx
  2. 4 4
      std/cs/NativeArray.hx
  3. 1 1
      std/cs/StringBuilder.hx
  4. 0 0
      std/cs/_std/Array.hx
  5. 2 2
      std/cs/_std/Date.hx
  6. 1 1
      std/cs/_std/EReg.hx
  7. 2 2
      std/cs/_std/Hash.hx
  8. 2 2
      std/cs/_std/IntHash.hx
  9. 16 16
      std/cs/_std/Math.hx
  10. 9 9
      std/cs/_std/Sys.hx
  11. 5 5
      std/cs/_std/Type.hx
  12. 4 4
      std/cs/_std/sys/FileSystem.hx
  13. 7 7
      std/cs/_std/sys/io/File.hx
  14. 1 1
      std/cs/_std/sys/io/FileInput.hx
  15. 1 1
      std/cs/_std/sys/io/FileOutput.hx
  16. 2 2
      std/cs/_std/sys/io/Process.hx
  17. 0 6
      std/cs/_std/system/Activator.hx
  18. 0 6
      std/cs/_std/system/IConvertible.hx
  19. 0 6
      std/cs/_std/system/reflection/ParameterInfo.hx
  20. 1 1
      std/cs/internal/Exceptions.hx
  21. 0 0
      std/cs/internal/HxObject.hx
  22. 12 12
      std/cs/internal/Runtime.hx
  23. 4 4
      std/cs/io/NativeInput.hx
  24. 4 4
      std/cs/io/NativeOutput.hx
  25. 6 0
      std/cs/system/Activator.hx
  26. 1 1
      std/cs/system/Array.hx
  27. 1 1
      std/cs/system/BitConverter.hx
  28. 7 7
      std/cs/system/Console.hx
  29. 1 1
      std/cs/system/Converter.hx
  30. 1 1
      std/cs/system/DateTime.hx
  31. 2 2
      std/cs/system/Environment.hx
  32. 1 1
      std/cs/system/Exception.hx
  33. 6 0
      std/cs/system/IConvertible.hx
  34. 1 1
      std/cs/system/IFormatProvider.hx
  35. 1 1
      std/cs/system/LocalDataStoreSlot.hx
  36. 1 1
      std/cs/system/Math.hx
  37. 3 3
      std/cs/system/OperatingSystem.hx
  38. 1 1
      std/cs/system/PlatformID.hx
  39. 1 1
      std/cs/system/Random.hx
  40. 2 2
      std/cs/system/Type.hx
  41. 1 1
      std/cs/system/Version.hx
  42. 2 2
      std/cs/system/collections/ICollection.hx
  43. 1 1
      std/cs/system/collections/IDictionary.hx
  44. 1 1
      std/cs/system/collections/IEnumerable.hx
  45. 1 1
      std/cs/system/collections/IEnumerator.hx
  46. 4 4
      std/cs/system/io/Directory.hx
  47. 4 4
      std/cs/system/io/DirectoryInfo.hx
  48. 4 4
      std/cs/system/io/File.hx
  49. 1 1
      std/cs/system/io/FileAccess.hx
  50. 1 1
      std/cs/system/io/FileAttributes.hx
  51. 4 4
      std/cs/system/io/FileInfo.hx
  52. 1 1
      std/cs/system/io/FileMode.hx
  53. 1 1
      std/cs/system/io/FileShare.hx
  54. 1 1
      std/cs/system/io/FileStream.hx
  55. 1 1
      std/cs/system/io/MemoryStream.hx
  56. 1 1
      std/cs/system/io/SeekOrigin.hx
  57. 1 1
      std/cs/system/io/Stream.hx
  58. 2 2
      std/cs/system/io/StreamReader.hx
  59. 2 2
      std/cs/system/io/StreamWriter.hx
  60. 1 1
      std/cs/system/reflection/ConstructorInfo.hx
  61. 2 2
      std/cs/system/reflection/MethodBase.hx
  62. 2 2
      std/cs/system/reflection/MethodInfo.hx
  63. 6 0
      std/cs/system/reflection/ParameterInfo.hx
  64. 1 1
      std/cs/system/text/Encoding.hx
  65. 1 1
      std/cs/system/text/regularExpressions/Regex.hx
  66. 2 2
      std/cs/system/threading/Thread.hx
  67. 2 2
      std/haxe/Resource.hx
  68. 5 5
      std/haxe/io/Bytes.hx
  69. 2 2
      std/haxe/io/BytesBuffer.hx
  70. 1 1
      std/haxe/io/BytesInput.hx
  71. 5 5
      std/haxe/io/Input.hx
  72. 4 4
      std/haxe/io/Output.hx

+ 3 - 3
std/cs/Lib.hx

@@ -1,5 +1,5 @@
 package cs;
-import system.Type;
+import cs.system.Type;
 
 /**
 	Platform-specific C# Library. Provides some platform-specific functions for the C# target,
@@ -51,7 +51,7 @@ class Lib
 			return native;
 		} else {
 			var ret = new NativeArray<T>(len);
-			system.Array.Copy(native, 0, ret, 0, len);
+			cs.system.Array.Copy(native, 0, ret, 0, len);
 			return ret;
 		}
 	}
@@ -76,7 +76,7 @@ class Lib
 		Currently Haxe's Class<> is equivalent to System.Type, but this is an implementation detail.
 		This may change in the future, so use this function whenever you need to perform such conversion.
 	**/
-	public static inline function fromNativeType(t:system.Type):Class<Dynamic>
+	public static inline function fromNativeType(t:cs.system.Type):Class<Dynamic>
 	{
 		return untyped t;
 	}

+ 4 - 4
std/cs/NativeArray.hx

@@ -1,13 +1,13 @@
 package cs;
 
-extern class NativeArray<T> extends system.Array, implements ArrayAccess<T>
+extern class NativeArray<T> extends cs.system.Array, implements ArrayAccess<T>
 {
 	public var Length(default, null):Int;
 	
 	public function new(len:Int):Void;
 	
-	@:overload(function(arr:system.Array, destIndex:haxe.Int64):Void {} )
-	public function CopyTo(arr:system.Array, destIndex:Int):Void;
+	@:overload(function(arr:cs.system.Array, destIndex:haxe.Int64):Void {} )
+	public function CopyTo(arr:cs.system.Array, destIndex:Int):Void;
 	
-	static function Reverse(arr:system.Array):Void;
+	static function Reverse(arr:cs.system.Array):Void;
 }

+ 1 - 1
std/cs/StringBuilder.hx

@@ -1,7 +1,7 @@
 package cs;
 
 //FIXME this class is here due to seemingly a bug in type resolution inside _std packages.
-//Once this bug is fixed, it will be moved back to the system.text package
+//Once this bug is fixed, it will be moved back to the cs.system.text package
 @:native('System.Text.StringBuilder') extern class StringBuilder 
 {
 

File diff suppressed because it is too large
+ 0 - 0
std/cs/_std/Array.hx


+ 2 - 2
std/cs/_std/Date.hx

@@ -1,5 +1,5 @@
 package;
-import system.DateTime;
+import cs.system.DateTime;
 import haxe.Int64;
 
 @:core_api class Date 
@@ -149,7 +149,7 @@ import haxe.Int64;
 		}
 	}
 	
-	private static function fromNative( d : system.DateTime ) : Date
+	private static function fromNative( d : cs.system.DateTime ) : Date
 	{
 		var date = new Date(0, 0, 0, 0, 0, 0);
 		date.date = d;

+ 1 - 1
std/cs/_std/EReg.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-import system.text.regularExpressions.Regex;
+import cs.system.text.regularExpressions.Regex;
 
 @:core_api class EReg {
 

+ 2 - 2
std/cs/_std/Hash.hx

@@ -475,8 +475,8 @@ import cs.NativeArray;
 		return ret;
 	}
 	
-	@:extern private static inline function arrayCopy(sourceArray:system.Array, sourceIndex:Int, destinationArray:system.Array, destinationIndex:Int, length:Int):Void
-		system.Array.Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length)
+	@:extern private static inline function arrayCopy(sourceArray:cs.system.Array, sourceIndex:Int, destinationArray:cs.system.Array, destinationIndex:Int, length:Int):Void
+		cs.system.Array.Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length)
 	
 	@:extern private static inline function assert(x:Bool):Void
 	{

+ 2 - 2
std/cs/_std/IntHash.hx

@@ -408,8 +408,8 @@ import cs.NativeArray;
 
 	private static inline function defaultK():Int return 0
 
-	private static inline function arrayCopy(sourceArray:system.Array, sourceIndex:Int, destinationArray:system.Array, destinationIndex:Int, length:Int):Void
-		system.Array.Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length)
+	private static inline function arrayCopy(sourceArray:cs.system.Array, sourceIndex:Int, destinationArray:cs.system.Array, destinationIndex:Int, length:Int):Void
+		cs.system.Array.Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length)
 
 	private static inline function getInc(k:Int, mask:Int):Int
 		return (((k) >> 3 ^ (k) << 3) | 1) & (mask)

+ 16 - 16
std/cs/_std/Math.hx

@@ -1,11 +1,11 @@
 package;
-import system.Random;
+import cs.system.Random;
 
 @:core_api @:nativegen class Math
 {
 	public static inline function __init__():Void
 	{
-		PI = system.Math.PI;
+		PI = cs.system.Math.PI;
 		NaN = untyped __cs__("double.NaN");
 		NEGATIVE_INFINITY = untyped __cs__("double.NegativeInfinity");
 		POSITIVE_INFINITY = untyped __cs__("double.PositiveInfinity");
@@ -21,7 +21,7 @@ import system.Random;
 
 	public static inline function abs(v:Float):Float
 	{
-		return system.Math.Abs(v);
+		return cs.system.Math.Abs(v);
 	}
 	
 	public static inline function min(a:Float, b:Float):Float
@@ -36,37 +36,37 @@ import system.Random;
 	
 	public static inline function sin(v:Float):Float
 	{
-		return system.Math.Sin(v);
+		return cs.system.Math.Sin(v);
 	}
 	
 	public static inline function cos(v:Float):Float
 	{
-		return system.Math.Cos(v);
+		return cs.system.Math.Cos(v);
 	}
 	
 	public static inline function atan2(y:Float, x:Float):Float
 	{
-		return system.Math.Atan2(y, x);
+		return cs.system.Math.Atan2(y, x);
 	}
 	
 	public static inline function tan(v:Float):Float
 	{
-		return system.Math.Tan(v);
+		return cs.system.Math.Tan(v);
 	}
 	
 	public static inline function exp(v:Float):Float
 	{
-		return system.Math.Exp(v);
+		return cs.system.Math.Exp(v);
 	}
 	
 	public static inline function log(v:Float):Float
 	{
-		return system.Math.Log(v);
+		return cs.system.Math.Log(v);
 	}
 	
 	public static inline function sqrt(v:Float):Float
 	{
-		return system.Math.Sqrt(v);
+		return cs.system.Math.Sqrt(v);
 	}
 	
 	public static function round(v:Float):Int
@@ -84,32 +84,32 @@ import system.Random;
 	
 	public static inline function floor(v:Float):Int
 	{
-		return Std.int(system.Math.Floor(v));
+		return Std.int(cs.system.Math.Floor(v));
 	}
 	
 	public static inline function ceil(v:Float):Int
 	{
-		return Std.int(system.Math.Ceiling(v));
+		return Std.int(cs.system.Math.Ceiling(v));
 	}
 	
 	public static inline function atan(v:Float):Float
 	{
-		return system.Math.Atan(v);
+		return cs.system.Math.Atan(v);
 	}
 	
 	public static inline function asin(v:Float):Float
 	{
-		return system.Math.Asin(v);
+		return cs.system.Math.Asin(v);
 	}
 	
 	public static inline function acos(v:Float):Float
 	{
-		return system.Math.Acos(v);
+		return cs.system.Math.Acos(v);
 	}
 	
 	public static inline function pow(v:Float, exp:Float):Float
 	{
-		return system.Math.Pow(v, exp);
+		return cs.system.Math.Pow(v, exp);
 	}
 	
 	public static inline function random() : Float

+ 9 - 9
std/cs/_std/Sys.hx

@@ -1,6 +1,6 @@
 import sys.io.Process;
-import system.Environment;
-import system.threading.Thread;
+import cs.system.Environment;
+import cs.system.threading.Thread;
 /*
  * Copyright (c) 2005-2012, The haXe Project Contributors
  * All rights reserved.
@@ -39,7 +39,7 @@ class Sys {
 	**/
 	public static function print( v : Dynamic ) : Void
 	{
-		system.Console.Write(v);
+		cs.system.Console.Write(v);
 	}
 
 	/**
@@ -47,7 +47,7 @@ class Sys {
 	**/
 	public static function println( v : Dynamic ) : Void
 	{
-		system.Console.WriteLine(v);
+		cs.system.Console.WriteLine(v);
 	}
 
 	/**
@@ -123,7 +123,7 @@ class Sys {
 	**/
 	public static function getCwd() : String
 	{
-		return system.io.Directory.GetCurrentDirectory();
+		return cs.system.io.Directory.GetCurrentDirectory();
 	}
 
 	/**
@@ -131,7 +131,7 @@ class Sys {
 	**/
 	public static function setCwd( s : String ) : Void
 	{
-		system.io.Directory.SetCurrentDirectory(s);
+		cs.system.io.Directory.SetCurrentDirectory(s);
 	}
 
 	/**
@@ -219,7 +219,7 @@ class Sys {
 	public static function stdin() : haxe.io.Input
 	{
 #if !(Xbox || CF || MF)
-		return new cs.io.NativeInput(system.Console.OpenStandardInput());
+		return new cs.io.NativeInput(cs.system.Console.OpenStandardInput());
 #else
 		return null;
 #end
@@ -231,7 +231,7 @@ class Sys {
 	public static function stdout() : haxe.io.Output
 	{
 #if !(Xbox || CF || MF)
-		return new cs.io.NativeOutput(system.Console.OpenStandardOutput());
+		return new cs.io.NativeOutput(cs.system.Console.OpenStandardOutput());
 #else
 		return null;
 #end
@@ -243,7 +243,7 @@ class Sys {
 	public static function stderr() : haxe.io.Output
 	{
 #if !(Xbox || CF || MF)
-		return new cs.io.NativeOutput(system.Console.OpenStandardError());
+		return new cs.io.NativeOutput(cs.system.Console.OpenStandardError());
 #else
 		return null;
 #end

+ 5 - 5
std/cs/_std/Type.hx

@@ -63,7 +63,7 @@ enum ValueType {
 
 	public static function getSuperClass( c : Class<Dynamic> ) : Class<Dynamic> 
 	{
-		var t:system.Type = Lib.toNativeType(c);
+		var t:cs.system.Type = Lib.toNativeType(c);
 		var base = t.BaseType;
 		if (base == null || (base + "") == ("haxe.lang.HxObject") || (base + "") == ("System.Object"))
 		{
@@ -109,7 +109,7 @@ enum ValueType {
 		if (name.indexOf(".") == -1)
 			name = "haxe.root." + name;
 #end
-		var t:system.Type = system.Type.GetType(name);
+		var t:cs.system.Type = cs.system.Type.GetType(name);
 		if (t == null)
 		{
 			switch(name)
@@ -121,7 +121,7 @@ enum ValueType {
 				case #if no-root "haxe.root.Dynamic" #else "Dynamic" #end: return Dynamic;
 				default: return null;
 			}
-		} else if (t.IsInterface && cast(untyped __typeof__(IGenericObject), system.Type).IsAssignableFrom(t)) { 
+		} else if (t.IsInterface && cast(untyped __typeof__(IGenericObject), cs.system.Type).IsAssignableFrom(t)) { 
 			t = null;
 			var i = 0;
 			var ts = "";
@@ -129,7 +129,7 @@ enum ValueType {
 			{
 				i++;
 				ts += (i == 1 ? "" : ",") + "System.Object";
-				t = system.Type.GetType(name + "`" + i + "[" + ts + "]");
+				t = cs.system.Type.GetType(name + "`" + i + "[" + ts + "]");
 			}
 			
 			return Lib.fromNativeType(t);
@@ -147,7 +147,7 @@ enum ValueType {
 
 	public static function createInstance<T>( cl : Class<T>, args : Array<Dynamic> ) : T
 	{
-		var t:system.Type = Lib.toNativeType(cl);
+		var t:cs.system.Type = Lib.toNativeType(cl);
 		var ctors = t.GetConstructors();
 		return Runtime.callMethod(null, cast ctors, ctors.Length, args);
 	}

+ 4 - 4
std/cs/_std/sys/FileSystem.hx

@@ -23,10 +23,10 @@
  * DAMAGE.
  */
 package sys;
-import system.io.DirectoryInfo;
-import system.io.File;
-import system.io.Directory;
-import system.io.FileInfo;
+import cs.system.io.DirectoryInfo;
+import cs.system.io.File;
+import cs.system.io.Directory;
+import cs.system.io.FileInfo;
 
 /**
 	This class allows you to get informations about the files and directories.

+ 7 - 7
std/cs/_std/sys/io/File.hx

@@ -62,9 +62,9 @@ class File {
 	public static function read( path : String, binary : Bool = true ) : FileInput
 	{
 		#if std-buffer //standardize 4kb buffers
-		var stream = new system.io.FileStream(path, Open, Read, ReadWrite, 4096);
+		var stream = new cs.system.io.FileStream(path, Open, Read, ReadWrite, 4096);
 		#else
-		var stream = new system.io.FileStream(path, Open, Read, ReadWrite);
+		var stream = new cs.system.io.FileStream(path, Open, Read, ReadWrite);
 		#end
 		return new FileInput(stream);
 	}
@@ -72,9 +72,9 @@ class File {
 	public static function write( path : String, binary : Bool = true ) : FileOutput
 	{
 		#if std-buffer //standardize 4kb buffers
-		var stream = new system.io.FileStream(path, Create, Write, ReadWrite, 4096);
+		var stream = new cs.system.io.FileStream(path, Create, Write, ReadWrite, 4096);
 		#else
-		var stream = new system.io.FileStream(path, Create, Write, ReadWrite);
+		var stream = new cs.system.io.FileStream(path, Create, Write, ReadWrite);
 		#end
 		return new FileOutput(stream);
 	}
@@ -82,15 +82,15 @@ class File {
 	public static function append( path : String, binary : Bool = true ) : FileOutput
 	{
 		#if std-buffer //standardize 4kb buffers
-		var stream = new system.io.FileStream(path, Append, Write, ReadWrite, 4096);
+		var stream = new cs.system.io.FileStream(path, Append, Write, ReadWrite, 4096);
 		#else
-		var stream = new system.io.FileStream(path, Append, Write, ReadWrite);
+		var stream = new cs.system.io.FileStream(path, Append, Write, ReadWrite);
 		#end
 		return new FileOutput(stream);
 	}
 	
 	public static function copy( src : String, dst : String ) : Void
 	{
-		system.io.File.Copy(src, dst);
+		cs.system.io.File.Copy(src, dst);
 	}
 }

+ 1 - 1
std/cs/_std/sys/io/FileInput.hx

@@ -28,7 +28,7 @@ package sys.io;
 	Use [sys.io.File.read] to create a [FileInput]
 **/
 class FileInput extends cs.io.NativeInput {
-	public function new(stream:system.io.FileStream)
+	public function new(stream:cs.system.io.FileStream)
 	{
 		super(stream);
 	}

+ 1 - 1
std/cs/_std/sys/io/FileOutput.hx

@@ -28,7 +28,7 @@ package sys.io;
 	Use [sys.io.File.write] to create a [FileOutput]
 **/
 class FileOutput extends cs.io.NativeOutput {
-	public function new(stream:system.io.FileStream)
+	public function new(stream:cs.system.io.FileStream)
 	{
 		super(stream);
 	}

+ 2 - 2
std/cs/_std/sys/io/Process.hx

@@ -24,8 +24,8 @@
  */
 package sys.io;
 import haxe.io.BytesInput;
-import system.io.StreamReader;
-import system.io.StreamWriter;
+import cs.system.io.StreamReader;
+import cs.system.io.StreamWriter;
 
 class Process {
 

+ 0 - 6
std/cs/_std/system/Activator.hx

@@ -1,6 +0,0 @@
-package system;
-
-@:native('System.Activator') extern class Activator 
-{
-	static function CreateInstance(t:system.Type):Dynamic;
-}

+ 0 - 6
std/cs/_std/system/IConvertible.hx

@@ -1,6 +0,0 @@
-package system;
-
-@:native("System.IConvertible") extern interface IConvertible
-{
-	function ToType(conversionType:system.Type, provider:IFormatProvider):Dynamic;
-}

+ 0 - 6
std/cs/_std/system/reflection/ParameterInfo.hx

@@ -1,6 +0,0 @@
-package system.reflection;
-
-@:native('System.Reflection.ParameterInfo') extern class ParameterInfo 
-{
-	var ParameterType(default, null):system.Type;
-}

+ 1 - 1
std/cs/internal/Exceptions.hx

@@ -1,5 +1,5 @@
 package cs.internal;
-import system.Exception;
+import cs.system.Exception;
 
 //should NOT be usable inside haxe code
 @:nativegen @:keep @:native("haxe.lang.HaxeException") private class HaxeException extends Exception

File diff suppressed because it is too large
+ 0 - 0
std/cs/internal/HxObject.hx


+ 12 - 12
std/cs/internal/Runtime.hx

@@ -2,11 +2,11 @@ package cs.internal;
 import cs.Lib;
 import cs.NativeArray;
 import cs.NativeArray;
-import system.Activator;
-import system.IConvertible;
-import system.reflection.MethodBase;
-import system.reflection.MethodInfo;
-import system.Type;
+import cs.system.Activator;
+import cs.system.IConvertible;
+import cs.system.reflection.MethodBase;
+import cs.system.reflection.MethodInfo;
+import cs.system.Type;
 
 /**
  This class is meant for internal compiler use only. It provides the Haxe runtime
@@ -364,7 +364,7 @@ import system.Type;
 	{
 		var length = args.length;
 		var oargs:NativeArray<Dynamic> = new NativeArray(length);
-		var ts:NativeArray<system.Type> = new NativeArray(length);
+		var ts:NativeArray<cs.system.Type> = new NativeArray(length);
 		
 		for (i in 0...length)
 		{
@@ -434,7 +434,7 @@ import system.Type;
 			}
 		}
 		
-		if (methods[0].ContainsGenericParameters && Std.is(methods[0], system.reflection.MethodInfo))
+		if (methods[0].ContainsGenericParameters && Std.is(methods[0], cs.system.reflection.MethodInfo))
 		{
 			var m:MethodInfo = cast methods[0];
 			var tgs = m.GetGenericArguments();
@@ -448,9 +448,9 @@ import system.Type;
 		}
 		
 		var m = methods[0];
-		if (obj == null && Std.is(m, system.reflection.ConstructorInfo))
+		if (obj == null && Std.is(m, cs.system.reflection.ConstructorInfo))
 		{
-			var ret = cast(m, system.reflection.ConstructorInfo).Invoke(oargs);
+			var ret = cast(m, cs.system.reflection.ConstructorInfo).Invoke(oargs);
 			return unbox(ret);
 		}
 		
@@ -473,7 +473,7 @@ import system.Type;
 			return haxe.lang.Null<object>.ofDynamic<object>(obj);
 		return nullableType.GetMethod("_ofDynamic").Invoke(null, new object[] { obj });
 	')
-	public static function mkNullable(obj:Dynamic, nullableType:system.Type):Dynamic
+	public static function mkNullable(obj:Dynamic, nullableType:cs.system.Type):Dynamic
 	{
 		return null;
 	}
@@ -599,7 +599,7 @@ import system.Type;
 				return t1 == t2;
 			return t1.Name.Equals(t2.Name);
 	')
-	public static function typeEq(t1:system.Type, t2:system.Type):Bool
+	public static function typeEq(t1:cs.system.Type, t2:cs.system.Type):Bool
 	{
 		return false;
 	}
@@ -639,7 +639,7 @@ import system.Type;
 		else
 			return (System.Converter<object, To>) delegate(object obj) { return (To) obj; };
 	')
-	public static function getConverter<To>():system.Converter<Dynamic,To>
+	public static function getConverter<To>():cs.system.Converter<Dynamic,To>
 	{
 		return null;
 	}*/

+ 4 - 4
std/cs/io/NativeInput.hx

@@ -9,7 +9,7 @@ class NativeInput extends Input
 {
 	public var canSeek(get_canSeek, null):Bool;
 	
-	var stream:system.io.Stream;
+	var stream:cs.system.io.Stream;
 	public function new(stream)
 	{
 		this.stream = stream;
@@ -47,9 +47,9 @@ class NativeInput extends Input
 	{
 		var p = switch(pos)
 		{
-			case SeekBegin: system.io.SeekOrigin.Begin;
-			case SeekCur: system.io.SeekOrigin.Current;
-			case SeekEnd: system.io.SeekOrigin.End;
+			case SeekBegin: cs.system.io.SeekOrigin.Begin;
+			case SeekCur: cs.system.io.SeekOrigin.Current;
+			case SeekEnd: cs.system.io.SeekOrigin.End;
 		};
 		
 		stream.Seek(cast(p, Int64), p);

+ 4 - 4
std/cs/io/NativeOutput.hx

@@ -7,7 +7,7 @@ class NativeOutput extends Output
 {
 	public var canSeek(get_canSeek, null):Bool;
 	
-	var stream:system.io.Stream;
+	var stream:cs.system.io.Stream;
 	public function new(stream)
 	{
 		this.stream = stream;
@@ -44,9 +44,9 @@ class NativeOutput extends Output
 	{
 		var p = switch(pos)
 		{
-			case SeekBegin: system.io.SeekOrigin.Begin;
-			case SeekCur: system.io.SeekOrigin.Current;
-			case SeekEnd: system.io.SeekOrigin.End;
+			case SeekBegin: cs.system.io.SeekOrigin.Begin;
+			case SeekCur: cs.system.io.SeekOrigin.Current;
+			case SeekEnd: cs.system.io.SeekOrigin.End;
 		};
 		
 		stream.Seek(cast(p, Int64), p);

+ 6 - 0
std/cs/system/Activator.hx

@@ -0,0 +1,6 @@
+package cs.system;
+
+@:native('System.Activator') extern class Activator 
+{
+	static function CreateInstance(t:cs.system.Type):Dynamic;
+}

+ 1 - 1
std/cs/_std/system/Array.hx → std/cs/system/Array.hx

@@ -1,4 +1,4 @@
-package system;
+package cs.system;
  
 @:native("System.Array")
 extern class Array 

+ 1 - 1
std/cs/_std/system/BitConverter.hx → std/cs/system/BitConverter.hx

@@ -1,4 +1,4 @@
-package system;
+package cs.system;
 import cs.NativeArray;
 import cs.NativeArray;
 import cs.StdTypes;

+ 7 - 7
std/cs/_std/system/Console.hx → std/cs/system/Console.hx

@@ -1,4 +1,4 @@
-package system;
+package cs.system;
 
 /**
 	Warning: This class definition is incomplete.
@@ -8,16 +8,16 @@ package system;
 **/
 @:native('System.Console') extern class Console 
 {
-	static var Error(default, null):system.io.StreamWriter;
-	static var In(default, null):system.io.StreamReader;
-	static var Out(default, null):system.io.StreamWriter;
+	static var Error(default, null):cs.system.io.StreamWriter;
+	static var In(default, null):cs.system.io.StreamReader;
+	static var Out(default, null):cs.system.io.StreamWriter;
 	
 	static function Write(obj:Dynamic):Void;
 	static function WriteLine(obj:Dynamic):Void;
 	
 	#if !(Xbox || CF || MF)
-	static function OpenStandardOutput():system.io.Stream;
-	static function OpenStandardInput():system.io.Stream;
-	static function OpenStandardError():system.io.Stream;
+	static function OpenStandardOutput():cs.system.io.Stream;
+	static function OpenStandardInput():cs.system.io.Stream;
+	static function OpenStandardError():cs.system.io.Stream;
 	#end
 }

+ 1 - 1
std/cs/_std/system/Converter.hx → std/cs/system/Converter.hx

@@ -1,4 +1,4 @@
-package system;
+package cs.system;
 
 @:native("System.Converter") 
 @:delegate extern typedef Converter<TInput,TOutput> = TInput->TOutput;

+ 1 - 1
std/cs/_std/system/DateTime.hx → std/cs/system/DateTime.hx

@@ -1,4 +1,4 @@
-package system;
+package cs.system;
 import haxe.Int64;
 
 /**

+ 2 - 2
std/cs/_std/system/Environment.hx → std/cs/system/Environment.hx

@@ -1,4 +1,4 @@
-package system;
+package cs.system;
 
 /**
 	Warning: This class definition is incomplete.
@@ -9,7 +9,7 @@ package system;
 @:native('System.Environment') extern class Environment
 {
 	static function Exit(code:Int):Void;
-	static function GetEnvironmentVariables():system.collections.IDictionary;
+	static function GetEnvironmentVariables():cs.system.collections.IDictionary;
 	static function GetEnvironmentVariable(k:String):String;
 	static function SetEnvironmentVariable(k:String, v:String):Void;
 	static function GetCommandLineArgs():cs.NativeArray<String>;

+ 1 - 1
std/cs/_std/system/Exception.hx → std/cs/system/Exception.hx

@@ -1,4 +1,4 @@
-package system;
+package cs.system;
 
 @:native("System.Exception") @:nativegen extern class Exception
 {

+ 6 - 0
std/cs/system/IConvertible.hx

@@ -0,0 +1,6 @@
+package cs.system;
+
+@:native("System.IConvertible") extern interface IConvertible
+{
+	function ToType(conversionType:cs.system.Type, provider:IFormatProvider):Dynamic;
+}

+ 1 - 1
std/cs/_std/system/IFormatProvider.hx → std/cs/system/IFormatProvider.hx

@@ -1,4 +1,4 @@
-package system;
+package cs.system;
 
 @:native("System.IFormatProvider") extern interface IFormatProvider
 {

+ 1 - 1
std/cs/_std/system/LocalDataStoreSlot.hx → std/cs/system/LocalDataStoreSlot.hx

@@ -1,4 +1,4 @@
-package system;
+package cs.system;
 
 @:final @:native('System.LocalDataStoreSlot') extern class LocalDataStoreSlot 
 {

+ 1 - 1
std/cs/_std/system/Math.hx → std/cs/system/Math.hx

@@ -1,4 +1,4 @@
-package system;
+package cs.system;
 
 @:native("System.Math") @:nativegen extern class Math
 {

+ 3 - 3
std/cs/_std/system/OperatingSystem.hx → std/cs/system/OperatingSystem.hx

@@ -1,4 +1,4 @@
-package system;
+package cs.system;
 
 /**
 	Warning: This class definition is incomplete.
@@ -8,6 +8,6 @@ package system;
 **/
 @:native('System.OperatingSystem') extern class OperatingSystem
 {
-	var Platform(default, null):system.PlatformID;
-	var Version(default, null):system.Version;
+	var Platform(default, null):cs.system.PlatformID;
+	var Version(default, null):cs.system.Version;
 }

+ 1 - 1
std/cs/_std/system/PlatformID.hx → std/cs/system/PlatformID.hx

@@ -1,4 +1,4 @@
-package system;
+package cs.system;
 
 /**
 	Warning: This class definition is incomplete.

+ 1 - 1
std/cs/_std/system/Random.hx → std/cs/system/Random.hx

@@ -1,4 +1,4 @@
-package system;
+package cs.system;
 
 @:native("System.Random")
 extern class Random 

+ 2 - 2
std/cs/_std/system/Type.hx → std/cs/system/Type.hx

@@ -1,6 +1,6 @@
-package system;
+package cs.system;
 import cs.NativeArray;
-import system.reflection.ConstructorInfo;
+import cs.system.reflection.ConstructorInfo;
 
 @:native("System.Type")
 extern class Type 

+ 1 - 1
std/cs/_std/system/Version.hx → std/cs/system/Version.hx

@@ -1,4 +1,4 @@
-package system;
+package cs.system;
 
 /**
 	Warning: This class definition is incomplete.

+ 2 - 2
std/cs/_std/system/collections/ICollection.hx → std/cs/system/collections/ICollection.hx

@@ -1,4 +1,4 @@
-package system.collections;
+package cs.system.collections;
 
 @:native('System.Collections.ICollection') extern interface ICollection implements IEnumerable
 {
@@ -6,6 +6,6 @@ package system.collections;
 	var IsSynchronized(default, null):Bool;
 	var SyncRoot(default, null):Bool;
 	
-	function CopyTo(arr:system.Array, index:Int):Void;
+	function CopyTo(arr:cs.system.Array, index:Int):Void;
 	function GetEnumerator():IEnumerator;
 }

+ 1 - 1
std/cs/_std/system/collections/IDictionary.hx → std/cs/system/collections/IDictionary.hx

@@ -1,4 +1,4 @@
-package system.collections;
+package cs.system.collections;
 
 @:native('System.Collections.IDictionary') extern interface IDictionary implements ICollection, implements ArrayAccess<Dynamic>
 {

+ 1 - 1
std/cs/_std/system/collections/IEnumerable.hx → std/cs/system/collections/IEnumerable.hx

@@ -1,4 +1,4 @@
-package system.collections;
+package cs.system.collections;
 
 @:native('System.Collections.IEnumerable') extern interface IEnumerable
 {

+ 1 - 1
std/cs/_std/system/collections/IEnumerator.hx → std/cs/system/collections/IEnumerator.hx

@@ -1,4 +1,4 @@
-package system.collections;
+package cs.system.collections;
 
 @:native('System.Collections.IEnumerator') extern interface IEnumerator
 {

+ 4 - 4
std/cs/_std/system/io/Directory.hx → std/cs/system/io/Directory.hx

@@ -1,4 +1,4 @@
-package system.io;
+package cs.system.io;
 import cs.NativeArray;
 import cs.NativeArray;
 
@@ -12,9 +12,9 @@ import cs.NativeArray;
 	static function GetDirectoryRoot(path:String):String;
 	static function GetFiles(path:String):NativeArray<String>;
 	static function GetFileSystemEntries(path:String):NativeArray<String>;
-	static function GetCreationTime(path:String):system.DateTime;
-	static function GetLastAccessTime(path:String):system.DateTime;
-	static function GetLastWriteTime(path:String):system.DateTime;
+	static function GetCreationTime(path:String):cs.system.DateTime;
+	static function GetLastAccessTime(path:String):cs.system.DateTime;
+	static function GetLastWriteTime(path:String):cs.system.DateTime;
 	static function Move(path:String, newpath:String):Void;
 	static function SetCurrentDirectory(path:String):Void;
 }

+ 4 - 4
std/cs/_std/system/io/DirectoryInfo.hx → std/cs/system/io/DirectoryInfo.hx

@@ -1,15 +1,15 @@
-package system.io;
+package cs.system.io;
 import haxe.Int64;
 
 @:final @:native('System.IO.DirectoryInfo') extern class DirectoryInfo 
 {
 	var Attributes(default, null):FileAttributes;
-	var CreationTime(default, null):system.DateTime;
+	var CreationTime(default, null):cs.system.DateTime;
 	var Exists(default, null):Bool;
 	var Extension(default, null):String;
 	var FullName(default, null):String;
-	var LastAccessTime(default, null):system.DateTime;
-	var LastWriteTime(default, null):system.DateTime;
+	var LastAccessTime(default, null):cs.system.DateTime;
+	var LastWriteTime(default, null):cs.system.DateTime;
 	var Name(default, null):String;
 	var Parent(default, null):DirectoryInfo;
 	var Root(default, null):DirectoryInfo;

+ 4 - 4
std/cs/_std/system/io/File.hx → std/cs/system/io/File.hx

@@ -1,4 +1,4 @@
-package system.io;
+package cs.system.io;
 
 @:native('System.IO.File') extern class File 
 {
@@ -11,9 +11,9 @@ package system.io;
 	
 	static function Delete(path:String):Void;
 	static function Exists(path:String):Bool;
-	static function GetCreationTime(path:String):system.DateTime;
-	static function GetLastAccessTime(path:String):system.DateTime;
-	static function GetLastWriteTime(path:String):system.DateTime;
+	static function GetCreationTime(path:String):cs.system.DateTime;
+	static function GetLastAccessTime(path:String):cs.system.DateTime;
+	static function GetLastWriteTime(path:String):cs.system.DateTime;
 	static function Move(source:String, dest:String):Void;
 	
 	

+ 1 - 1
std/cs/_std/system/io/FileAccess.hx → std/cs/system/io/FileAccess.hx

@@ -1,4 +1,4 @@
-package system.io;
+package cs.system.io;
 
 @:native('System.IO.FileAccess') extern enum FileAccess 
 {

+ 1 - 1
std/cs/_std/system/io/FileAttributes.hx → std/cs/system/io/FileAttributes.hx

@@ -1,4 +1,4 @@
-package system.io;
+package cs.system.io;
 
 @:native('System.IO.FileAttributes') extern enum FileAttributes 
 {

+ 4 - 4
std/cs/_std/system/io/FileInfo.hx → std/cs/system/io/FileInfo.hx

@@ -1,17 +1,17 @@
-package system.io;
+package cs.system.io;
 import haxe.Int64;
 
 @:final @:native('System.IO.FileInfo') extern class FileInfo 
 {
 	var Attributes(default, null):FileAttributes;
-	var CreationTime(default, null):system.DateTime;
+	var CreationTime(default, null):cs.system.DateTime;
 	var Directory(default, null):DirectoryInfo;
 	var DirectoryName(default, null):String;
 	var Exists(default, null):Bool;
 	var Extension(default, null):String;
 	var FullName(default, null):String;
-	var LastAccessTime(default, null):system.DateTime;
-	var LastWriteTime(default, null):system.DateTime;
+	var LastAccessTime(default, null):cs.system.DateTime;
+	var LastWriteTime(default, null):cs.system.DateTime;
 	var Length(default, null):Int64;
 	var Name(default, null):String;
 	

+ 1 - 1
std/cs/_std/system/io/FileMode.hx → std/cs/system/io/FileMode.hx

@@ -1,4 +1,4 @@
-package system.io;
+package cs.system.io;
 
 @:native('System.IO.FileMode') extern enum FileMode 
 {

+ 1 - 1
std/cs/_std/system/io/FileShare.hx → std/cs/system/io/FileShare.hx

@@ -1,4 +1,4 @@
-package system.io;
+package cs.system.io;
 
 @:native('System.IO.FileShare') extern enum FileShare 
 {

+ 1 - 1
std/cs/_std/system/io/FileStream.hx → std/cs/system/io/FileStream.hx

@@ -1,4 +1,4 @@
-package system.io;
+package cs.system.io;
 
 @:native('System.IO.FileStream') extern class FileStream extends Stream
 {

+ 1 - 1
std/cs/_std/system/io/MemoryStream.hx → std/cs/system/io/MemoryStream.hx

@@ -1,4 +1,4 @@
-package system.io;
+package cs.system.io;
 import cs.NativeArray;
 import cs.StdTypes;
 import haxe.Int64;

+ 1 - 1
std/cs/_std/system/io/SeekOrigin.hx → std/cs/system/io/SeekOrigin.hx

@@ -1,4 +1,4 @@
-package system.io;
+package cs.system.io;
 
 @:native('System.IO.SeekOrigin') extern enum SeekOrigin 
 {

+ 1 - 1
std/cs/_std/system/io/Stream.hx → std/cs/system/io/Stream.hx

@@ -1,4 +1,4 @@
-package system.io;
+package cs.system.io;
 import cs.StdTypes;
 import haxe.Int64;
 import haxe.io.BytesData;

+ 2 - 2
std/cs/_std/system/io/StreamReader.hx → std/cs/system/io/StreamReader.hx

@@ -1,4 +1,4 @@
-package system.io;
+package cs.system.io;
 
 /**
 	Warning: This class definition is incomplete.
@@ -8,5 +8,5 @@ package system.io;
 **/
 @:native('System.IO.StreamReader') extern class StreamReader 
 {
-	var BaseStream(default, null):system.io.Stream;
+	var BaseStream(default, null):cs.system.io.Stream;
 }

+ 2 - 2
std/cs/_std/system/io/StreamWriter.hx → std/cs/system/io/StreamWriter.hx

@@ -1,4 +1,4 @@
-package system.io;
+package cs.system.io;
 
 /**
 	Warning: This class definition is incomplete.
@@ -8,5 +8,5 @@ package system.io;
 **/
 @:native('System.IO.StreamWriter') extern class StreamWriter 
 {
-	var BaseStream(default, null):system.io.Stream;
+	var BaseStream(default, null):cs.system.io.Stream;
 }

+ 1 - 1
std/cs/_std/system/reflection/ConstructorInfo.hx → std/cs/system/reflection/ConstructorInfo.hx

@@ -1,4 +1,4 @@
-package system.reflection;
+package cs.system.reflection;
 import cs.NativeArray;
 
 @:native('System.Reflection.ConstructorInfo') extern class ConstructorInfo extends MethodBase

+ 2 - 2
std/cs/_std/system/reflection/MethodBase.hx → std/cs/system/reflection/MethodBase.hx

@@ -1,4 +1,4 @@
-package system.reflection;
+package cs.system.reflection;
 import cs.NativeArray;
 
 @:native('System.Reflection.MethodBase') extern class MethodBase 
@@ -6,7 +6,7 @@ import cs.NativeArray;
 	var Name(default, null):String;
 	var ContainsGenericParameters(default, null):Bool;
 	function GetParameters():NativeArray<ParameterInfo>;
-	function GetGenericArguments():NativeArray<system.Type>;
+	function GetGenericArguments():NativeArray<cs.system.Type>;
 	@:overload(function():Dynamic {})
 	function Invoke(obj:Dynamic, args:NativeArray<Dynamic>):Dynamic;
 }

+ 2 - 2
std/cs/_std/system/reflection/MethodInfo.hx → std/cs/system/reflection/MethodInfo.hx

@@ -1,7 +1,7 @@
-package system.reflection;
+package cs.system.reflection;
 import cs.NativeArray;
 import cs.NativeArray;
-import system.Type;
+import cs.system.Type;
 
 @:native('System.Reflection.MethodInfo') extern class MethodInfo extends MethodBase 
 {

+ 6 - 0
std/cs/system/reflection/ParameterInfo.hx

@@ -0,0 +1,6 @@
+package cs.system.reflection;
+
+@:native('System.Reflection.ParameterInfo') extern class ParameterInfo 
+{
+	var ParameterType(default, null):cs.system.Type;
+}

+ 1 - 1
std/cs/_std/system/text/Encoding.hx → std/cs/system/text/Encoding.hx

@@ -1,4 +1,4 @@
-package system.text;
+package cs.system.text;
 import cs.NativeArray;
 import cs.StdTypes;
 

+ 1 - 1
std/cs/_std/system/text/regularExpressions/Regex.hx → std/cs/system/text/regularExpressions/Regex.hx

@@ -1,4 +1,4 @@
-package system.text.regularExpressions;
+package cs.system.text.regularExpressions;
 import cs.NativeArray;
 
 @:native('System.Text.RegularExpressions.Regex') extern class Regex 

+ 2 - 2
std/cs/_std/system/threading/Thread.hx → std/cs/system/threading/Thread.hx

@@ -1,5 +1,5 @@
-package system.threading;
-import system.LocalDataStoreSlot;
+package cs.system.threading;
+import cs.system.LocalDataStoreSlot;
 
 @:native("System.Threading.ThreadStart") @:delegate typedef ThreadStart = Void->Void;
 

+ 2 - 2
std/haxe/Resource.hx

@@ -72,7 +72,7 @@ class Resource {
 		var stream = new java.io.NativeInput(stream);
 		return stream.readAll().toString();
 		#elseif cs
-		var str:system.io.Stream = untyped __cs__("typeof(haxe.Resource).Assembly.GetManifestResourceStream((string)getPaths().get(name).@value)");
+		var str:cs.system.io.Stream = untyped __cs__("typeof(haxe.Resource).Assembly.GetManifestResourceStream((string)getPaths().get(name).@value)");
 		if (str != null)
 			return new cs.io.NativeInput(str).readAll().toString();
 		return null;
@@ -99,7 +99,7 @@ class Resource {
 		var stream = new java.io.NativeInput(stream);
 		return stream.readAll();
 		#elseif cs
-		var str:system.io.Stream = untyped __cs__("typeof(haxe.Resource).Assembly.GetManifestResourceStream((string)getPaths().get(name).@value)");
+		var str:cs.system.io.Stream = untyped __cs__("typeof(haxe.Resource).Assembly.GetManifestResourceStream((string)getPaths().get(name).@value)");
 		if (str != null)
 			return new cs.io.NativeInput(str).readAll();
 		return null;

+ 5 - 5
std/haxe/io/Bytes.hx

@@ -83,7 +83,7 @@ class Bytes {
 		#elseif java
 		java.lang.System.arraycopy(src.b, srcpos, b, pos, len);
 		#elseif cs
-		system.Array.Copy(src.b, srcpos, b, pos, len);
+		cs.system.Array.Copy(src.b, srcpos, b, pos, len);
 		#else
 		var b1 = b;
 		var b2 = src.b;
@@ -120,7 +120,7 @@ class Bytes {
 		return new Bytes(len, newarr);
 		#elseif cs
 		var newarr = new cs.NativeArray(len);
-		system.Array.Copy(b, pos, newarr, 0, len);
+		cs.system.Array.Copy(b, pos, newarr, 0, len);
 		return new Bytes(len, newarr);
 		#else
 		return new Bytes(len,b.slice(pos,pos+len));
@@ -183,7 +183,7 @@ class Bytes {
 		untyped __global__.__hxcpp_string_of_bytes(b,result,pos,len);
 		return result;
 		#elseif cs
-		return system.text.Encoding.UTF8.GetString(b, pos, len);
+		return cs.system.text.Encoding.UTF8.GetString(b, pos, len);
 		#elseif java
 		try
 			return new String(b, pos, len, "UTF-8")
@@ -226,7 +226,7 @@ class Bytes {
 		return cast b;
 //		return untyped __call__("call_user_func_array", "pack", __call__("array_merge", __call__("array", "C*"), b.»a));
 		#elseif cs
-		return system.text.Encoding.UTF8.GetString(b, 0, length);
+		return cs.system.text.Encoding.UTF8.GetString(b, 0, length);
 		#elseif java
 		try
 		{
@@ -303,7 +303,7 @@ class Bytes {
 		untyped __global__.__hxcpp_bytes_of_string(a,s);
 		return new Bytes(a.length, a);
 		#elseif cs
-		var b = system.text.Encoding.UTF8.GetBytes(s);
+		var b = cs.system.text.Encoding.UTF8.GetBytes(s);
 		return new Bytes(b.Length, b);
 		#elseif java
 		try

+ 2 - 2
std/haxe/io/BytesBuffer.hx

@@ -35,7 +35,7 @@ class BytesBuffer {
 	#elseif cpp
 	var b : BytesData;
 	#elseif cs
-	var b : system.io.MemoryStream;
+	var b : cs.system.io.MemoryStream;
 	#elseif java
 	var b : java.io.ByteArrayOutputStream;
 	#else
@@ -52,7 +52,7 @@ class BytesBuffer {
 		#elseif cpp
 		b = new BytesData();
 		#elseif cs
-		b = new system.io.MemoryStream();
+		b = new cs.system.io.MemoryStream();
 		#elseif java
 		b = new java.io.ByteArrayOutputStream();
 		#else

+ 1 - 1
std/haxe/io/BytesInput.hx

@@ -95,7 +95,7 @@ class BytesInput extends Input {
 			if ( len > avail ) len = avail;
 			if (len == 0)
 				throw new Eof();
-			system.Array.Copy(this.b,this.pos, buf.getData(), pos, len);
+			cs.system.Array.Copy(this.b,this.pos, buf.getData(), pos, len);
 			this.pos += len;
 			this.len -= len;
 		#else

+ 5 - 5
std/haxe/io/Input.hx

@@ -117,7 +117,7 @@ class Input {
 				var len = buf.getData().Length;
 				if (len > tlen)
 					len = tlen;
-				system.Array.Copy(buf.getData(), 0, ret, idx, len);
+				cs.system.Array.Copy(buf.getData(), 0, ret, idx, len);
 				idx += len;
 				tlen -= len;
 			}
@@ -210,7 +210,7 @@ class Input {
 			if (helper == null) helper = new cs.NativeArray(8);
 			
 			var helper = helper;
-			if (bigEndian == !system.BitConverter.IsLittleEndian)
+			if (bigEndian == !cs.system.BitConverter.IsLittleEndian)
 			{
 				helper[0] = readByte();
 				helper[1] = readByte();
@@ -223,7 +223,7 @@ class Input {
 				helper[0] = readByte();
 			}
 			
-			return system.BitConverter.ToSingle(helper, 0);
+			return cs.system.BitConverter.ToSingle(helper, 0);
 		#elseif java
 			if (helper == null) helper = java.nio.ByteBuffer.allocateDirect(8);
 			var helper = helper;
@@ -283,7 +283,7 @@ class Input {
 		if (helper == null) helper = new cs.NativeArray(8);
 		
 		var helper = helper;
-		if (bigEndian == !system.BitConverter.IsLittleEndian)
+		if (bigEndian == !cs.system.BitConverter.IsLittleEndian)
 		{
 			helper[0] = readByte();
 			helper[1] = readByte();
@@ -304,7 +304,7 @@ class Input {
 			helper[0] = readByte();
 		}
 		
-		return system.BitConverter.ToDouble(helper, 0);
+		return cs.system.BitConverter.ToDouble(helper, 0);
 		#elseif java
 		if (helper == null) helper = java.nio.ByteBuffer.allocateDirect(8);
 		var helper = helper;

+ 4 - 4
std/haxe/io/Output.hx

@@ -105,8 +105,8 @@ class Output {
 		#elseif php
 		write(untyped Bytes.ofString(__call__('pack', 'f', x)));
 		#elseif cs
-		var bytes = system.BitConverter.GetBytes(cast(x, Single));
-		if (bigEndian == system.BitConverter.IsLittleEndian)
+		var bytes = cs.system.BitConverter.GetBytes(cast(x, Single));
+		if (bigEndian == cs.system.BitConverter.IsLittleEndian)
 		{
 			writeByte(bytes[3]);
 			writeByte(bytes[2]);
@@ -159,8 +159,8 @@ class Output {
 		#elseif php
 		write(untyped Bytes.ofString(__call__('pack', 'd', x)));
 		#elseif cs
-		var bytes = system.BitConverter.GetBytes(x);
-		if (bigEndian == system.BitConverter.IsLittleEndian)
+		var bytes = cs.system.BitConverter.GetBytes(x);
+		if (bigEndian == cs.system.BitConverter.IsLittleEndian)
 		{
 			writeByte(bytes[7]);
 			writeByte(bytes[6]);

Some files were not shown because too many files changed in this diff