Example #1
0
    public override string ToString()
    {
        var sb = new StringBuilder();

        if (Unknown.Any())
        {
            sb.Append(string.Join(", ", Unknown.Select(x => x.Name)));
        }

        if (Incoming.Any())
        {
            if (sb.Length > 0)
            {
                sb.Append("; ");
            }
            sb.Append("Incoming: ");
            sb.Append(string.Join(", ", Incoming.Select(x => x.Name)));
        }

        if (Outgoing.Any())
        {
            if (sb.Length > 0)
            {
                sb.Append("; ");
            }
            sb.Append("Outgoing: ");
            sb.Append(string.Join(", ", Outgoing.Select(x => x.Name)));
        }

        return(sb.ToString());
    }