private void Append(BfType bfType) { if (bfType == null) { return; } if (Assembly.IsCoreAssembly) { TypesUsed.Add(bfType); } bfType.TypesUsing.Add(this); }
public void Commit() { if (BaseType != null && BaseType == _bfCache.Types.First(t => t.FullName == "System.Object")) { BaseType.Commit(); Append(BaseType); BaseType.TypesUsed.ForEach(Append); } Interfaces.ForEach(Append); Fields.ForEach(t => t.TypesUsed.ForEach(Append)); Methods.ForEach(t => t.TypesUsed.ForEach(Append)); Events.ForEach(t => t.TypesUsed.ForEach(Append)); TypesUsed.Clear(); }