public override string GetProperty(T t) { if (t.Peptides.Count == 1 && t.Peptides[0].Proteins.Count == 1) { return(t.Peptides[0].Proteins[0]); } var sb = new StringBuilder(); bool bfirst = true; foreach (IIdentifiedPeptide pep in t.Peptides) { if (bfirst) { bfirst = false; } else { sb.Append(" ! "); } StringUtils.AddTo(sb, pep.Proteins, "/"); } return(sb.ToString()); }