private static void AppendRange(StringBuilder b, PortRange range) { string rangeString = range.ToString(); if (rangeString != null) { b.Append(range); b.Append(','); } }