public static Array ListToArray(ListBase list, System.Type type) { Array result = Array.CreateInstance(type, list.Count); if (list.Count > 0) { list.CopyTo(result, 0); } if (type.IsSubclassOf(typeof(GLib.Opaque))) { list.elements_owned = false; } return(result); }
public static T [] ListToArray <T> (ListBase list) { int count = list.Count; var result = new T [count]; if (count > 0) { list.CopyTo(result, 0); } if (typeof(T).IsSubclassOf(typeof(GLib.Opaque))) { list.elements_owned = false; } return(result); }
public ListEnumerator(ListBase list) { this.list = list; }
public static Array ListToArray(ListBase list, System.Type type) { Array result = Array.CreateInstance (type, list.Count); if (list.Count > 0) list.CopyTo (result, 0); if (type.IsSubclassOf (typeof (GLib.Opaque))) list.elements_owned = false; return result; }