Exemplo n.º 1
0
        public object ToClrObject(object funObject)
        {
            var funArray = (funObject as IFunArray);
            var clrArray = Array.CreateInstance(ClrType.GetElementType(), funArray.Count);

            for (int i = 0; i < funArray.Count; i++)
            {
                var item = _elementConverter.ToClrObject(funArray.GetElementOrNull(i));
                clrArray.SetValue(item, i);
            }
            return(clrArray);
        }
Exemplo n.º 2
0
 public Type GetElementType()
 {
     return(ClrType.GetElementType());
 }