Ejemplo n.º 1
0
        protected override object RunBlock()
        {
            object obj   = base.contextBlock.Run();
            Array  array = obj as Array;

            if (array != null)
            {
                BloxBlock obj2  = base.paramBlocks[0];
                object    value = (obj2 != null) ? obj2.Run() : null;
                try
                {
                    Array val = BloxUtil.ArrayAdd(array, value);
                    base.contextBlock.UpdateWith(val);
                }
                catch (Exception ex)
                {
                    base.LogError(ex.Message, null);
                }
            }
            else
            {
                base.LogError("The context must be an Array but was [" + ((obj != null) ? obj.GetType() : null) + "]", null);
            }
            return(null);
        }