/// <summary> /// Merge code blocks in eah referencedframent into mqin class. /// This is not done for the interfaces, only the class. /// </summary> protected void MergeFragments() { if (this.fragBase.IsFragment() == true) { return; } CodeBlockNested usingBlock = this.fragBase.ClassEditor.Blocks.Find("Usings", false); foreach (SDInfo fiRef in this.fragBase.AllReferencedFragments) { usingBlock.AppendUniqueLine($"using {CSMisc.LocalClassNameSpace(fiRef)}"); this.MergeFragment(fiRef); } }