public static EmptyDocumentation GetInstance() { if (_instance == null) { _instance = new EmptyDocumentation(); } return(_instance); }
public ClientDocumentation(string info) { this.documents = new List <Document>(); EmptyDocumentation emptyDocumentation = EmptyDocumentation.GetInstance(); emptyDocumentation.documents.ForEach((Document document) => { Document documentCloned = document.clone(); documentCloned.fill(info); this.documents.Add(documentCloned); }); }