コード例 #1
0
 /// <summary>
 /// Converts the <paramref name="source"/> <see cref="Tuple"/> to
 /// its string representation.
 /// </summary>
 /// <param name="source">The tuple to convert.</param>
 /// <param name="format">Indicates whether to use <see cref="Format"/>,
 /// or <see cref="Tuple.ToString"/> method.</param>
 /// <returns>String representation of <paramref name="source"/> <see cref="Tuple"/>.</returns>
 public static string ToString(this Tuple source, bool format)
 {
     return(format ? source.Format() : source.ToString());
 }