internal void EndInstanceProducer(bool last) { var entry = this.producers.Pop(); this.indentingDepth--; this.Append(")"); if (!last) { this.Append(","); if (this.stillToWriteLifestyleEntry != null) { this.AppendLifestyle(this.stillToWriteLifestyleEntry); this.stillToWriteLifestyleEntry = null; } this.AppendLifestyle(entry); } if (!entry.LifestyleWritten) { this.stillToWriteLifestyleEntry = entry; } if (!this.producers.Any()) { this.AppendLifestyle(this.stillToWriteLifestyleEntry); } }
private void AppendLifestyle(ProducerEntry entry) { if (this.writeLifestyles && !entry.LifestyleWritten) { this.Append(" // "); this.Append(entry.Producer.Lifestyle.Name); entry.LifestyleWritten = true; } }
private void AppendLifestyle(ProducerEntry entry) { if (this.visualizationOptions.IncludeLifestyleInformation && !entry.LifestyleWritten) { this.Append(" // "); this.Append(entry.Producer.Lifestyle.Name); entry.LifestyleWritten = true; } }