Beispiel #1
0
        public FileBlockInfo GetBlock(string blockName)
        {
            // Create object for provided block name
            FileBlockInfo fileBlockInfo = new FileBlockInfo(this, blockName);

            // Look for proper one block on the list
            if (Blocks.ContainsKey(blockName))
            {
                fileBlockInfo = Blocks[blockName];
            }
            else
            {
                Blocks.Add(blockName, fileBlockInfo);
                OrderedBlocks.Add(blockName);
            }

            // Return result
            return(fileBlockInfo);
        }
Beispiel #2
0
 public FileBlockPart(FileBlockInfo parent)
 {
     Parent  = parent;
     Content = "";
 }