Simplest way to read a Java MapMessage in .NET

Not sure you have already seen this but it may help. There’s an example of how to handle a MapMessage in C#

// assuming that message is a reference to a received message

IMessage message = args.Message; /*args is a MessageEventArgs*/

ISDTContainer container = SDTUtils.GetContainer(message);

if (container != null && container is IMapContainer)

{

    // typecast the container to IMapContainer

    IMapContainer map = (IMapContainer) container;

}

It seems you can then iterate over the entries in the map using GetNext, HasNext and start over using Rewind once you iterated over all entries: