BlackLinks.Templates.TemplateBlock.RemoveCodeStart C# (CSharp) Method

RemoveCodeStart() public method

public RemoveCodeStart ( ) : void
return void
		public void RemoveCodeStart ()
		{
			Buffer.Remove (Buffer.Length - CodeStartTag.Length, CodeStartTag.Length);
		}
		public void RemoveCodeEnd ()

Usage Example

Example #1
0
 void parseLine()
 {
     foreach (char c in currentLine)
     {
         currentBlock.Buffer.Append(c);
         if (currentBlock.IsCodeStart)
         {
             currentBlock.RemoveCodeStart();
             continueWithBlocks();
             currentBlock.Type = BlockType.Code;
         }
         else if (currentBlock.IsCodeEnd)
         {
             currentBlock.RemoveCodeEnd();
             continueWithBlocks();
         }
     }
     if (currentBlock.Type == BlockType.Literal)
     {
         currentBlock.isLineOfText = true;
     }
 }