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

RemoveCodeEnd() public method

public RemoveCodeEnd ( ) : void
return void
		public void RemoveCodeEnd ()
		{
			Buffer.Remove (Buffer.Length - CodeEndTag.Length, CodeEndTag.Length);
		}
		public bool Empty {

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;
     }
 }