コード例 #1
0
ファイル: Enums.cs プロジェクト: smdx24/CPI-Source-Code
        internal static global::System.Enum GetArbitraryValue(global::System.Type enumType)
        {
            global::System.Array enumValues = GetEnumValues(enumType);
            int num = (int)(DateTimeUtilities.CurrentUnixMs() & 0x7FFFFFFF) % enumValues.get_Length();

            return((global::System.Enum)enumValues.GetValue(num));
        }
コード例 #2
0
ファイル: IList.generated.cs プロジェクト: hc4/jni4net
 public void CopyTo(global::System.Array array, int index)
 {
     global::net.sf.jni4net.jni.JNIEnv @__env = this.Env;
     using (new global::net.sf.jni4net.jni.LocalFrame(@__env, 14)){
         @__env.CallVoidMethod(this, global::System.Collections.@__IList.j4n_CopyTo11, global::net.sf.jni4net.utils.Convertor.ParStrongC2Jp <global::System.Array>(@__env, array), global::net.sf.jni4net.utils.Convertor.ParPrimC2J(index));
     }
 }
コード例 #3
0
ファイル: SCrypt.cs プロジェクト: smdx24/CPI-Source-Code
 private static void Clear(global::System.Array array)
 {
     if (array != null)
     {
         global::System.Array.Clear(array, 0, array.get_Length());
     }
 }
コード例 #4
0
        public static void p_nativeArray <T>(global::Array <T> arr, global::System.Array ret)
        {
            T[] native = arr.__a;
            int len    = arr.length;

            global::System.Array.Copy(((global::System.Array)(native)), ((int)(0)), ((global::System.Array)(ret)), ((int)(0)), ((int)(len)));
        }
コード例 #5
0
 public bool Compute_CurrentPlan(int nmsg, global::System.Array Msg, bool BlockingMode)
 {
     global::net.sf.jni4net.jni.JNIEnv @__env = this.Env;
     using (new global::net.sf.jni4net.jni.LocalFrame(@__env, 16)){
         return((bool)(@__env.CallBooleanMethod(this, global::RAS506.___HECRASController.j4n_Compute_CurrentPlan2, global::net.sf.jni4net.utils.Convertor.ParPrimC2J(nmsg), global::net.sf.jni4net.utils.Convertor.ParStrongC2Jp <global::System.Array>(@__env, Msg), global::net.sf.jni4net.utils.Convertor.ParPrimC2J(BlockingMode))));
     }
 }
コード例 #6
0
ファイル: Type.cs プロジェクト: mindpowered/maglev-csharp
 public static global::Array <string> getEnumConstructs(global::System.Type e)
 {
             #line 245 "/opt/haxe/std/cs/_std/Type.hx"
     global::System.Type t = (((object)(e)) as global::System.Type);
     global::haxe.lang.Null <global::System.Reflection.BindingFlags> initial = new global::haxe.lang.Null <global::System.Reflection.BindingFlags>(global::System.Reflection.BindingFlags.Static, true);
     global::System.Reflection.BindingFlags this1 = ((!(initial.hasValue)) ? (default(global::System.Reflection.BindingFlags)) : ((initial).@value));
     global::haxe.lang.Null <global::System.Reflection.BindingFlags> initial1 = new global::haxe.lang.Null <global::System.Reflection.BindingFlags>((((global::System.Reflection.BindingFlags)(this1)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.NonPublic))), true);
     global::System.Reflection.BindingFlags this2 = ((!(initial1.hasValue)) ? (default(global::System.Reflection.BindingFlags)) : ((initial1).@value));
     global::System.Reflection.FieldInfo    f     = t.GetField(((string)("__hx_constructs")), ((global::System.Reflection.BindingFlags)(this2)));
             #line 247 "/opt/haxe/std/cs/_std/Type.hx"
     if ((f != null))
     {
                     #line 248 "/opt/haxe/std/cs/_std/Type.hx"
         global::System.Array values = ((global::System.Array)(f.GetValue(default(object))));
         string[]             copy   = new string[values.Length];
                     #line 250 "/opt/haxe/std/cs/_std/Type.hx"
         global::System.Array.Copy(((global::System.Array)(values)), ((global::System.Array)(copy)), ((int)(values.Length)));
         return(new global::Array <string>(((string[])(copy))));
     }
     else
     {
                     #line 253 "/opt/haxe/std/cs/_std/Type.hx"
         return(new global::Array <string>(((string[])(global::System.Enum.GetNames(((global::System.Type)(t)))))));
     }
 }
コード例 #7
0
 public static void Copy(global::System.Array sourceArray, global::System.Array destinationArray, int length)
 {
     for (int i = 0; i < length; i++)
     {
         InternalCopyElement(sourceArray, destinationArray, i);
     }
 }
コード例 #8
0
 public void NodeCutLine_Points(int riv, int rch, int n, global::System.Array PointX, global::System.Array PointY)
 {
     global::net.sf.jni4net.jni.JNIEnv @__env = this.Env;
     using (new global::net.sf.jni4net.jni.LocalFrame(@__env, 20)){
         @__env.CallVoidMethod(this, global::RAS506.___HECRASGeometry.j4n_NodeCutLine_Points14, global::net.sf.jni4net.utils.Convertor.ParPrimC2J(riv), global::net.sf.jni4net.utils.Convertor.ParPrimC2J(rch), global::net.sf.jni4net.utils.Convertor.ParPrimC2J(n), global::net.sf.jni4net.utils.Convertor.ParStrongC2Jp <global::System.Array>(@__env, PointX), global::net.sf.jni4net.utils.Convertor.ParStrongC2Jp <global::System.Array>(@__env, PointY));
     }
 }
コード例 #9
0
ファイル: Lib.cs プロジェクト: mindpowered/maglev-csharp
 public static void p_nativeArray <T>(global::Array <T> arr, global::System.Array ret)
 {
                 #line 72 "/opt/haxe/std/cs/Lib.hx"
     T[] native = arr.__a;
     int len    = arr.length;
                 #line 74 "/opt/haxe/std/cs/Lib.hx"
     global::System.Array.Copy(((global::System.Array)(native)), ((int)(0)), ((global::System.Array)(ret)), ((int)(0)), ((int)(len)));
 }
コード例 #10
0
 private void InitializeComponent()
 {
     global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(MasterPage));
     labelNombre   = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Span>(this, "labelNombre");
     labelApellido = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Span>(this, "labelApellido");
     labelTipoUser = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "labelTipoUser");
     listView      = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.ListView>(this, "listView");
     ArrayBarra    = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::System.Array>(this, "ArrayBarra");
 }
コード例 #11
0
 public static int enumIndex(object e)
 {
     if ((e is global::System.Enum))
     {
         global::System.Array values = global::System.Enum.GetValues(((global::System.Type)(((object)(e)).GetType())));
         return(global::System.Array.IndexOf(((global::System.Array)(values)), ((object)(e))));
     }
     else
     {
         return((((global::haxe.lang.Enum)(e)))._hx_index);
     }
 }
コード例 #12
0
        public static void Copy(global::System.Array sourceArray, int sourceOffset, global::System.Array destinationArray, int destinationOffset, int length)
        {
            // http://stackoverflow.com/questions/7110666/il-instructions-not-exposed-by-c-sharp
            // http://referencesource.microsoft.com/#mscorlib/system/buffer.cs,570e88af5685d024
            // can Uint8ClampedArray copy be made any faster?

            for (int i = 0; i < length; i++)
            {
                // x:\jsc.svn\market\synergy\javascript\chrome\chrome\bclimplementation\system\net\sockets\tcplistener.cs

                InternalCopyElement(sourceArray, i + sourceOffset, destinationArray, i + destinationOffset);
            }
        }
コード例 #13
0
ファイル: Type.cs プロジェクト: mindpowered/maglev-csharp
 public static int enumIndex(object e)
 {
             #line 325 "/opt/haxe/std/cs/_std/Type.hx"
     if ((e is global::System.Enum))
     {
                     #line 326 "/opt/haxe/std/cs/_std/Type.hx"
         global::System.Array values = global::System.Enum.GetValues(((global::System.Type)(((object)(e)).GetType())));
         return(global::System.Array.IndexOf(((global::System.Array)(values)), ((object)(e))));
     }
     else
     {
                     #line 329 "/opt/haxe/std/cs/_std/Type.hx"
         return((((global::haxe.lang.Enum)(e)))._hx_index);
     }
 }
コード例 #14
0
ファイル: Type.cs プロジェクト: sonygod/unitywebsocket
 public static int enumIndex(object e)
 {
                 #line 325 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
     if ((e is global::System.Enum))
     {
                         #line 326 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
         global::System.Array values = global::System.Enum.GetValues(((global::System.Type)(((object)(e)).GetType())));
         return(global::System.Array.IndexOf(((global::System.Array)(values)), ((object)(e))));
     }
     else
     {
                         #line 329 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
         return((((global::haxe.lang.Enum)(e)))._hx_index);
     }
 }
コード例 #15
0
 private static void ReachInvert_Points7(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle riv, global::net.sf.jni4net.utils.JniLocalHandle rch, global::net.sf.jni4net.utils.JniLocalHandle PointX, global::net.sf.jni4net.utils.JniLocalHandle PointY)
 {
     // (Lnet/sf/jni4net/Ref;Lnet/sf/jni4net/Ref;Lnet/sf/jni4net/Ref;Lnet/sf/jni4net/Ref;)V
     // (IILSystem/Array;LSystem/Array;)V
     global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp);
     try {
         int @__ref_riv = net.sf.jni4net.Ref.GetValue <int>(@__env, riv);
         int @__ref_rch = net.sf.jni4net.Ref.GetValue <int>(@__env, rch);
         global::System.Array @__ref_PointX         = net.sf.jni4net.Ref.GetValue <global::System.Array>(@__env, PointX);
         global::System.Array @__ref_PointY         = net.sf.jni4net.Ref.GetValue <global::System.Array>(@__env, PointY);
         global::RAS506.HECRASGeometryClass @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::RAS506.HECRASGeometryClass>(@__env, @__obj);
         ((global::RAS506._HECRASGeometry)(@__real)).ReachInvert_Points(ref __ref_riv, ref __ref_rch, ref __ref_PointX, ref __ref_PointY);
         net.sf.jni4net.Ref.SetValue <int>(@__env, riv, @__ref_riv);
         net.sf.jni4net.Ref.SetValue <int>(@__env, rch, @__ref_rch);
         net.sf.jni4net.Ref.SetValue <global::System.Array>(@__env, PointX, @__ref_PointX);
         net.sf.jni4net.Ref.SetValue <global::System.Array>(@__env, PointY, @__ref_PointY);
     }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); }
 }
コード例 #16
0
        private static bool Compute_CurrentPlan2(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle nmsg, global::net.sf.jni4net.utils.JniLocalHandle Msg, global::net.sf.jni4net.utils.JniLocalHandle BlockingMode)
        {
            // (Lnet/sf/jni4net/Ref;Lnet/sf/jni4net/Ref;Lnet/sf/jni4net/Ref;)Z
            // (ILSystem/Array;Z)Z
            global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp);
            bool @__return = default(bool);

            try {
                int @__ref_nmsg = net.sf.jni4net.Ref.GetValue <int>(@__env, nmsg);
                global::System.Array @__ref_Msg          = net.sf.jni4net.Ref.GetValue <global::System.Array>(@__env, Msg);
                bool @__ref_BlockingMode                 = net.sf.jni4net.Ref.GetValue <bool>(@__env, BlockingMode);
                global::RAS506._HECRASController @__real = global::net.sf.jni4net.utils.Convertor.FullJ2C <global::RAS506._HECRASController>(@__env, @__obj);
                @__return = ((bool)(@__real.Compute_CurrentPlan(ref __ref_nmsg, ref __ref_Msg, ref __ref_BlockingMode)));
                net.sf.jni4net.Ref.SetValue <int>(@__env, nmsg, @__ref_nmsg);
                net.sf.jni4net.Ref.SetValue <global::System.Array>(@__env, Msg, @__ref_Msg);
                net.sf.jni4net.Ref.SetValue <bool>(@__env, BlockingMode, @__ref_BlockingMode);
            }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); }
            return(@__return);
        }
コード例 #17
0
 private static void NodeCutLine_Points14(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle riv, global::net.sf.jni4net.utils.JniLocalHandle rch, global::net.sf.jni4net.utils.JniLocalHandle n, global::net.sf.jni4net.utils.JniLocalHandle PointX, global::net.sf.jni4net.utils.JniLocalHandle PointY)
 {
     // (Lnet/sf/jni4net/Ref;Lnet/sf/jni4net/Ref;Lnet/sf/jni4net/Ref;Lnet/sf/jni4net/Ref;Lnet/sf/jni4net/Ref;)V
     // (IIILSystem/Array;LSystem/Array;)V
     global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp);
     try {
         int @__ref_riv = net.sf.jni4net.Ref.GetValue <int>(@__env, riv);
         int @__ref_rch = net.sf.jni4net.Ref.GetValue <int>(@__env, rch);
         int @__ref_n   = net.sf.jni4net.Ref.GetValue <int>(@__env, n);
         global::System.Array           @__ref_PointX = net.sf.jni4net.Ref.GetValue <global::System.Array>(@__env, PointX);
         global::System.Array           @__ref_PointY = net.sf.jni4net.Ref.GetValue <global::System.Array>(@__env, PointY);
         global::RAS506._HECRASGeometry @__real       = global::net.sf.jni4net.utils.Convertor.FullJ2C <global::RAS506._HECRASGeometry>(@__env, @__obj);
         @__real.NodeCutLine_Points(ref __ref_riv, ref __ref_rch, ref __ref_n, ref __ref_PointX, ref __ref_PointY);
         net.sf.jni4net.Ref.SetValue <int>(@__env, riv, @__ref_riv);
         net.sf.jni4net.Ref.SetValue <int>(@__env, rch, @__ref_rch);
         net.sf.jni4net.Ref.SetValue <int>(@__env, n, @__ref_n);
         net.sf.jni4net.Ref.SetValue <global::System.Array>(@__env, PointX, @__ref_PointX);
         net.sf.jni4net.Ref.SetValue <global::System.Array>(@__env, PointY, @__ref_PointY);
     }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); }
 }
コード例 #18
0
 public virtual void CopyTo(global::System.Array array, int index)
 {
     global::System.Collections.IEnumerator enumerator = ((global::System.Collections.IEnumerable)keys).GetEnumerator();
     try
     {
         while (enumerator.MoveNext())
         {
             object current = enumerator.get_Current();
             array.SetValue(hash.get_Item(current), index++);
         }
     }
     finally
     {
         global::System.IDisposable disposable = enumerator as global::System.IDisposable;
         if (disposable != null)
         {
             disposable.Dispose();
         }
     }
 }
コード例 #19
0
 public virtual void CopyTo(global::System.Array array, int index)
 {
     impl.get_Keys().CopyTo(array, index);
 }
コード例 #20
0
 public abstract void CopyTo(global::System.Array array, int index);
コード例 #21
0
 internal static void InternalCopyElement(global::System.Array s, int si, global::System.Array d, int di)
 {
 }
コード例 #22
0
 internal abstract void SetNextOutputBuffer(global::System.Array array, int offset, int len);
コード例 #23
0
 public override void CopyTo(global::System.Array array, int index)
 {
     ((global::System.Collections.ICollection)s).CopyTo(array, index);
 }
コード例 #24
0
ファイル: Collection.cs プロジェクト: ridomin/HSQLDB.Net
 /// <summary>Implements the <c>ICollection.CopyTo</c> function.</summary>
 public void CopyTo(global::System.Array array, int index)
 {
     global::Codemesh.JuggerNET.NativeInterface.CollectionCopyTo(array, index, this);
 }
コード例 #25
0
ファイル: List.cs プロジェクト: squareinc/JSC-Cross-Compiler
 void ICollection.CopyTo(global::System.Array array, int index)
 {
     throw new NotImplementedException("");
 }
コード例 #26
0
ファイル: Type.cs プロジェクト: sonygod/unitywebsocket
        public static global::haxe.root.Array getEnumConstructs(global::System.Type e)
        {
                        #line 245 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
            global::System.Type t = ((global::System.Type)((((object)(e)) as global::System.Type)));
            object initial        = global::System.Reflection.BindingFlags.Static;
            global::System.Reflection.BindingFlags this1 = (((initial == default(object))) ? (default(global::System.Reflection.BindingFlags)) : (((global::System.Reflection.BindingFlags)(initial))));
            object initial1 = ((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)(this1)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.NonPublic)))));
            global::System.Reflection.BindingFlags this2 = (((initial1 == default(object))) ? (default(global::System.Reflection.BindingFlags)) : (((global::System.Reflection.BindingFlags)(initial1))));
            global::System.Reflection.FieldInfo    f     = t.GetField(((string)("__hx_constructs")), ((global::System.Reflection.BindingFlags)(this2)));
                        #line 247 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
            if ((f != null))
            {
                                #line 248 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                global::System.Array values = ((global::System.Array)(f.GetValue(default(object))));
                string[]             copy   = new string[values.Length];
                                #line 250 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                global::System.Array.Copy(((global::System.Array)(values)), ((global::System.Array)(copy)), ((int)(values.Length)));
                object[] ret = new object[(copy as global::System.Array).Length];
                {
                                        #line 251 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    int _g = 0;
                                        #line 251 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    int _g1 = (copy as global::System.Array).Length;
                                        #line 251 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    while ((_g < _g1))
                    {
                                                #line 251 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        int i = _g++;
                                                #line 251 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        ret[i] = ((string)(copy[i]));
                    }
                }

                                #line 251 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                object[] dyn = ret;
                                #line 251 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                return(new global::haxe.root.Array(((object[])(dyn))));
            }
            else
            {
                                #line 253 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                string[] native = global::System.Enum.GetNames(((global::System.Type)(t)));
                                #line 253 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                object[] ret1 = new object[(native as global::System.Array).Length];
                                #line 253 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                {
                                        #line 253 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    int _g2 = 0;
                                        #line 253 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    int _g11 = (native as global::System.Array).Length;
                                        #line 253 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    while ((_g2 < _g11))
                    {
                                                #line 253 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        int i1 = _g2++;
                                                #line 253 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        ret1[i1] = ((string)(native[i1]));
                    }
                }

                                #line 253 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                object[] dyn1 = ret1;
                                #line 253 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                return(new global::haxe.root.Array(((object[])(dyn1))));
            }
        }
コード例 #27
0
 public void CopyTo(global::System.Array array, int index)
 {
     throw new NotImplementedException("");
 }
コード例 #28
0
        public static void Reverse(global::System.Array array)
        {
            var a = ((object)array) as global::ScriptCoreLib.ActionScript.Array;

            a.reverse();
        }