public ObjRef[] Objects()
        {
            int count = ObjectCount;

            Collections.RhinoList <ObjRef> objrefs = new Collections.RhinoList <ObjRef>(count);
            for (int i = 0; i < count; i++)
            {
                ObjRef objref = Object(i);
                objrefs.Add(objref);
            }
            return(objrefs.ToArray());
        }
 public ObjRef[] Objects()
 {
   int count = ObjectCount;
   if (count < 1)
     return null;
   Collections.RhinoList<ObjRef> objrefs = new Collections.RhinoList<ObjRef>(count);
   for(int i=0; i<count; i++)
   {
     ObjRef objref = Object(i);
     objrefs.Add(objref);
   }
   return objrefs.ToArray();
 }