private static void CopyTo1(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle array, int index) { // (Lsystem/Array;I)V // (LSystem/Array;I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::System.Collections.ICollection @__real = global::net.sf.jni4net.utils.Convertor.FullJ2C <global::System.Collections.ICollection>(@__env, @__obj); @__real.CopyTo(global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.Array>(@__env, array), index); }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); } }
public void One() { PropertyDescriptor pd = TypeDescriptor.GetProperties(typeof(TextBox))["AutoCompleteSource"]; TypeConverter converter = pd.Converter; Assert.AreEqual("System.Windows.Forms.TextBoxAutoCompleteSourceConverter", converter.GetType().FullName, "setup--converter type"); Assert.IsTrue(converter.GetStandardValuesSupported(), "GetStandardValuesSupported"); Assert.IsTrue(converter.GetStandardValuesExclusive(), "GetStandardValuesExclusive"); // global::System.Collections.ICollection list = converter.GetStandardValues(); Assert.AreEqual(8, list.Count, "count"); Object[] arr = new Object[list.Count]; list.CopyTo(arr, 0); Assert.AreEqual(AutoCompleteSource.FileSystem, arr[0], "item0"); Assert.AreEqual(AutoCompleteSource.HistoryList, arr[1], "item1"); Assert.AreEqual(AutoCompleteSource.RecentlyUsedList, arr[2], "item2"); Assert.AreEqual(AutoCompleteSource.AllUrl, arr[3], "item3"); Assert.AreEqual(AutoCompleteSource.AllSystemSources, arr[4], "item4"); Assert.AreEqual(AutoCompleteSource.FileSystemDirectories, arr[5], "item5"); Assert.AreEqual(AutoCompleteSource.CustomSource, arr[6], "item6"); Assert.AreEqual(AutoCompleteSource.None, arr[7], "item7"); // And NOT AutoCompleteSource.ListItems. }