T is just a name (and not the best one possible); use ConversionType
ResultType, AfterConverstaionType,... I think you come up with something
better


On Mon, Mar 25, 2013 at 1:07 PM, François Thillen
<notifications@github.com>wrote:

> In bridge/Implementation/ExtendMethods.cs:
>
> > +
> > +                if (IsValueNotInCorrectType(key, keyType))
> > +                {
> > +                    keyobject = marshaller.UnmarshallObject(key.ToString(), keyType);
> > +                }
> > +                elementType.GetProperty("key").SetValue(instance, keyobject, null);
> > +                if (IsValueNotInCorrectType(value, valueType))
> > +                {
> > +                    value = marshaller.UnmarshallObject(value.ToString(), valueType);
> > +                }
> > +                elementType.GetProperty("value").SetValue(instance, value, null);
> > +                elements.SetValue(instance, i++);
> > +            }
> > +            return (Object[])elements;
> > +        }
> > +        public static T ConvertOSBType<T>(this Object obj)
>
> Could you give me an example? From alll the code parts that I saw, there
> was always T.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/openengsb/loom-csharp/pull/48/files#r3510388>
> .
>