/// <summary> /// Gets a <see cref="ComplexOntologyResource"/> as a string /// </summary> /// <returns>String with the information of this <see cref="ComplexOntologyResource"/>.</returns> public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendLine("-------------------------------------------------------------"); sb.AppendLine("Resource: "); sb.AppendLine($"\t\tId: {Id}"); sb.AppendLine($"\t\tGnossId: {GnossId}"); sb.AppendLine($"\t\tDescription: {Description}"); sb.AppendLine($"\t\tTags: {Tags.ToString()}"); sb.AppendLine($"\t\tTextCategories: {TextCategories.ToString()}"); sb.AppendLine($"\t\tAuthor: {Author}"); sb.AppendLine("-------------------------------------------------------------"); return(sb.ToString()); }
private string GetText(TextCategories category, Enum message) { return(_allTexts.Dictionaries[category].Dict[message]); }