ServiceManager/Utility/StatusResponse.cs
/// <summary>Gets the status detail messages concatenated to a single string.</summary>
/// <param name="details">The status details containing the messages.</param>
/// <param name="detailsSeperator">
/// The separator string that would separate adjacent messages when concatenating.
/// </param>
/// <returns>A string containing the status messages contained in the specified list of
/// status details.</returns>
Gets the status detail messages concatenated to a single string.
Gets the status detail messages concatenated to a single string .
public static string GetStatusDetailMessages(StatusDetail[] details, string detailsSeperator)
        {
            StringBuilder buffer = new StringBuilder(details.Length * 20);
            for (int i = 0; i < details.Length; i++)
                if (details[i] != null)
                {
                    buffer.Append(details[i].message);
                    buffer.Append(detailsSeperator);
                }
            return buffer.ToString();
        }
public static string GetStatusDetailMessages ( StatusDetail [ ] details , string detailsSeperator ) { StringBuilder buffer = new StringBuilder ( details . Length * 20 ) ; for ( int i = 0 ; i < details . Length ; i ++ ) if ( details [ i ] != null ) { buffer . Append ( details [ i ] . message ) ; buffer . Append ( detailsSeperator ) ; } return buffer . ToString ( ) ; }
Gets the status detail messages concatenated to a single string.
Gets the status detail messages concatenated to a single string .
A string containing the status messages contained in the specified list of
status details.
A string containing the status messages contained in the specified list of status details .
details
StatusDetail[]
The status details containing the messages.
The status details containing the messages .
detailsSeperator
string
The separator string that would separate adjacent messages when concatenating.
The separator string that would separate adjacent messages when concatenating .