protected void WriteImplementsInterfacseBlock() { WriteLine ("//---------------------------------------------------------------------"); ExtendCodeBlockHandler handler = new ExtendCodeBlockHandler (ExtendClassBodyCodeBlock); WriteCodeBlock ("ImplementsInterfaces", handler); WriteLine ("//---------------------------------------------------------------------"); }
protected void WriteClassBlock() { AnalyseActions (); Inc (); WriteLine (""); WriteLine ("//---------------------------------------------------------------------"); ExtendCodeBlockHandler handler = new ExtendCodeBlockHandler (ExtendClassBodyCodeBlock); WriteCodeBlock ("ClassBodyCode", handler); WriteLine ("//---------------------------------------------------------------------"); Dec (); }
protected void WriteCodeBlock(string code, ExtendCodeBlockHandler handler) { WriteBeginBlock (code); string block = GetCodeBlock (code); block = ExtendCodeBlock (code, block, handler); if (IsNotEmptyString (block)) { block = block.Trim (); if (IsNotEmptyString (block)) { WriteLine (block); } } WriteEndBlock (code); }
protected string ExtendCodeBlock(string code, string block, ExtendCodeBlockHandler handler) { if (handler != null) { block = handler (code, block); } return block; }