Example #1
0
        protected override object RunBlock()
        {
            object obj   = base.contextBlock.Run();
            Array  array = obj as Array;

            if (array != null)
            {
                if (array.Length > 0)
                {
                    if (base.owningBlock == null)
                    {
                        BloxUtil.ArraySort(array);
                        return(null);
                    }
                    return(BloxUtil.ArraySortRes(array));
                }
                if (base.owningBlock != null)
                {
                    return(array);
                }
            }
            else
            {
                base.LogError("The context must be an Array but was [" + ((obj != null) ? obj.GetType() : null) + "]", null);
            }
            return(null);
        }