Esempio n. 1
0
        protected override object RunBlock()
        {
            object obj  = base.contextBlock.Run();
            IList  list = obj as IList;

            if (list != null)
            {
                BloxBlock obj2  = base.paramBlocks[0];
                object    value = (obj2 != null) ? obj2.Run() : null;
                return(BloxUtil.ListIndexOf(list, value));
            }
            base.LogError("The context must be a List but was [" + ((obj != null) ? obj.GetType() : null) + "]", null);
            return(-1);
        }