Example #1
0
 /// <summary>
 /// Returns a string representation of the counter using one of the defined default formats.
 /// </summary>
 /// <param name="format">One of the standard formats defined in the library.</param>
 /// <returns>Formatted string detailing the counter data.</returns>
 public string ToString(StatisticsFormat format)
 {
     return(this.ToString(
                format == StatisticsFormat.Default
                         ? Resources.DefaultStatisticsFormat
                         : Resources.DefaultStatisticsShortFormat
                ));
 }
 /// <summary>
 /// Returns a string representation of the counter using one of the defined default formats.
 /// </summary>
 /// <param name="format">One of the standard formats defined in the library.</param>
 /// <returns>Formatted string detailing the counter data.</returns>
 public string ToString(StatisticsFormat format)
 {
     return this.ToString(
                           format == StatisticsFormat.Default
                         ? Resources.DefaultStatisticsFormat
                         : Resources.DefaultStatisticsShortFormat
                         );
 }