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