Antlr.Runtime.Collections.CollectionUtils Class Reference

List of all members.

Static Public Member Functions

static string ListToString (IList coll)
 Returns a string representation of this IList.
static string DictionaryToString (IDictionary dict)
 Returns a string representation of this IDictionary.


Detailed Description

Definition at line 44 of file CollectionUtils.cs.


Member Function Documentation

static string Antlr.Runtime.Collections.CollectionUtils.ListToString ( IList  coll  )  [static]

Returns a string representation of this IList.

The string representation is a list of the collection's elements in the order they are returned by its IEnumerator, enclosed in square brackets ("[]"). The separator is a comma followed by a space i.e. ", ".

Parameters:
coll Collection whose string representation will be returned
Returns:
A string representation of the specified collection or "null"

Definition at line 56 of file CollectionUtils.cs.

static string Antlr.Runtime.Collections.CollectionUtils.DictionaryToString ( IDictionary  dict  )  [static]

Returns a string representation of this IDictionary.

The string representation is a list of the collection's elements in the order they are returned by its IEnumerator, enclosed in curly brackets ("{}"). The separator is a comma followed by a space i.e. ", ".

Parameters:
dict Dictionary whose string representation will be returned
Returns:
A string representation of the specified dictionary or "null"

Definition at line 98 of file CollectionUtils.cs.


The documentation for this class was generated from the following file:

Generated on Wed Oct 1 14:13:28 2008 for ANTLR API by  doxygen 1.5.5