X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/1a0176e1707c254990a62840db990f668f3d5c5f..2d3deebee7a29f2d01269fddfd6f55b2939be22b:/demo/src/Controlador/Controller.cs?ds=sidebyside diff --git a/demo/src/Controlador/Controller.cs b/demo/src/Controlador/Controller.cs index 78d639d..54f372f 100644 --- a/demo/src/Controlador/Controller.cs +++ b/demo/src/Controlador/Controller.cs @@ -4,6 +4,7 @@ namespace Controlador { using com.db4o; using System; +using System.Collections; public class Controller : IDisposable { @@ -21,6 +22,23 @@ public class Controller : IDisposable { db.close (); } + + protected ArrayList ObjectSetToArrayList (ObjectSet result) + { + ArrayList lst = new ArrayList (); + Object s; + if (result == null) + return lst; + + while ((s = result.next ()) != null) { + lst.Add (s); + } + return lst; + } + + public void GenericSave (object o) + { + } } }