Пример #1
0
        public List <ICoreObject> GetBlocksByTypeAndLanguage(ICoreObject parent, BlockType type, ProgrammingLanguage language)
        {
            List <ICoreObject> blockList = new List <ICoreObject>();
            IList blocks = BlockService.GetBlocksByTypeAndLanguage(parent, type, language);

            for (int i = 0; i < blocks.Count; i++)
            {
                blockList.Add(blocks[i] as ICoreObject);
            }
            return(blockList);
        }