Esempio n. 1
0
        private static Block DoGetBlock(TypedInstructionCollection instructions, int startOffset, int endOffset)
        {
            int startIndex = instructions.OffsetToIndex(startOffset);
            int endIndex   = instructions.OffsetToIndex(endOffset);

            Block block = new Block();

            block.Index  = startIndex;
            block.Length = endIndex - startIndex;

            return(block);
        }