OpenSim/Framework/Util.cs
/// <summary>
/// Pretty format the hashtable contents to a single line.
/// </summary>
/// <remarks>
/// Used for debugging output.
/// </remarks>
/// <param name='ht'></param>
Pretty format the hashtable contents to a single line.
Pretty format the hashtable contents to a single line .
public static string PrettyFormatToSingleLine(Hashtable ht)
        {
            StringBuilder sb = new StringBuilder();
            int i = 0;
            foreach (string key in ht.Keys)
            {
                sb.AppendFormat("{0}:{1}", key, ht[key]);
                if (++i < ht.Count)
                    sb.AppendFormat(", ");
            }
            return sb.ToString();
        }
public static string PrettyFormatToSingleLine ( Hashtable ht ) { StringBuilder sb = new StringBuilder ( ) ; int i = 0 ; foreach ( string key in ht . Keys ) { sb . AppendFormat ( " " , key , ht [ key ] ) ; if ( ++ i < ht . Count ) sb . AppendFormat ( " " ) ; } return sb . ToString ( ) ; }
Pretty format the hashtable contents to a single line.
Pretty format the hashtable contents to a single line .
ht
Hashtable
None
remarks
Used for debugging output.
Used for debugging output .