public ListToIterValue(IEnumerable iter, HeronType elementType)
 {
     list = new List <HeronValue>();
     foreach (Object o in iter)
     {
         list.Add(HeronDotNet.Marshal(o));
     }
     current          = 0;
     this.elementType = elementType;
 }
Example #2
0
 /// <summary>
 /// Creates a Heron object from a System (.NET) object
 /// If it is a primitive, this will convert to the Heron primitives
 /// </summary>
 /// <param name="o"></param>
 /// <returns></returns>
 public static HeronValue Marshal(Object o)
 {
     return(HeronDotNet.Marshal(o));
 }