/// <summary> /// A list of referencing members and members referenced by which members /// </summary> /// <param name="includeSelfRefs"></param> /// <returns></returns> public string Info(bool includeSelfRefs) { /* Name [ArchMember] * Referenced by types: * ReferentClass_1 ... * Referenced by members: * ReferentMember_1 --> Member_1 ... */ string headIndent = "\n"; string itemIndent = "\n\t"; string info = FullName; ArchList <ArchitectMember> refMembs = ReferencedMembers(includeSelfRefs); if (refMembs.Count > 0) { info += $"{headIndent}References members:"; } refMembs.ForEach(M => info += $"{itemIndent}{M.SimpleName}"); refMembs = ReferentMembers(includeSelfRefs); if (refMembs.Count > 0) { info += $"{headIndent}Referenced by members:"; } refMembs.ForEach(M => info += $"{itemIndent}{M.SimpleName}"); return(info); }
/// <summary> /// Add only non-duplicate items /// </summary> /// <param name="tLst"></param> public void AddRange(ArchList <T> tLst) => tLst.ForEach(t => { if (!Contains(t)) { base.Add(t); } });