Example #1
0
		/// <summary>
		///   Gets a string representation of <paramref name="ports" /> for inclusing in a diagnostic message.
		/// </summary>
		/// <param name="ports">The ports that should be included in the string.</param>
		private static string PortSetToString(IMethodSymbol[] ports)
		{
			return ports.Length == 0 ? "<none>" : String.Join(", ", ports.Select(port => $"'{port.ToDisplayString()}'"));
		}