ok, now make it clear in the code that I don't have to ask :-)


On Mon, Mar 25, 2013 at 1:06 PM, François Thillen
<notifications@github.com>wrote:

> In bridge/Implementation/ExtendMethods.cs:
>
> > +            if (elementType.IsArray)
> > +            {
> > +                elementType = type.GetElementType();
> > +            }
> > +            Array elements = Array.CreateInstance(elementType, arg.Count);
> > +
> > +            int i = 0;
> > +            foreach (Object key in arg.Keys)
> > +            {
> > +                Object instance = Activator.CreateInstance(elementType, false);
> > +                Object value = arg[key];
> > +                Object keyobject = key;
> > +                Type keyType = elementType.GetProperty("key").PropertyType;
> > +                Type valueType = elementType.GetProperty("value").PropertyType;
> > +
> > +                if (IsValueNotInCorrectType(key, keyType))
>
> If the Map (EntryX) is transfert as Map and the key or the value is not a
> primitv type (For example PLC) then this PLC can be still in json format.
> So we have to convert this first to a type. (Is a very rare case but it
> could happen)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/openengsb/loom-csharp/pull/48/files#r3510376>
> .
>