EnumAsList

public IList<string, string> EnumAsList

Returns a IList of KeyValuePairs enumerating every attribute in the message.
The attribute names don't have to be unique, hence being usefull when an attribute name is used more than once.

Returns

Returns a IList of KeyValuePairs enumerating every attribute in the message.

Example

string order_no = string.Empty;
string line_no = string.Empty;

cMessage msg = cMessage.FromString(messageStr); 

foreach (KeyValuePair<string,string> kvp in msg.EnumAsList)
{
   switch (kvp.Key)
   {
      case "ORDER_NO":
         order_no = kvp.Value;
         break;

      case "LINE_NO":
         line_no = kvp.Value;
         break;

      // Do something...
   }
}