using System; using csharp_lib_arrays_boolNamespace; public class runme { static void Main() { { bool[] source = { true, false, false, true, false, true, true, false }; bool[] target = new bool[ source.Length ]; csharp_lib_arrays_bool.myArrayCopyUsingFixedArraysBool( source, target, target.Length ); CompareArrays(source, target, "bool[] INPUT/OUTPUT Fixed"); } { bool[] source = { true, false, false, true, false, true, true, false }; bool[] target = { false, true, true, false, true, false, false, true }; csharp_lib_arrays_bool.myArraySwapUsingFixedArraysBool( source, target, target.Length ); for (int i=0; i( T[] a, T[] b, string testName ) { if (a.Length != b.Length) throw new Exception("size mismatch"); for(int i=0; i( T[] a ) { foreach ( T i in a ) Console.Error.Write( "{0} ", i ); Console.Error.WriteLine(); } static bool runtimeIsMono() { return Type.GetType ("Mono.Runtime") != null; } }