and why not new Xyz(object) toXyz?


On Mon, Mar 25, 2013 at 11:56 AM, François Thillen <notifications@github.com
> wrote:

> In bridge/BridgeTests/TestHelpMethods.cs:
>
> > @@ -134,7 +159,7 @@ public void TestMapToEntr1()
> >              Dictionary<Object, Object> Test = new Dictionary<Object, Object>();
> >              Test.Add("1", 11);
> >              Test.Add("21", 111);
> > -            Entry1[] result = (Entry1[])HelpMethods.ConvertMap(Test, typeof(Entry1));
> > +            Entry1[] result = (Entry1[])ExtendMethods.ConvertMap(Test, typeof(Entry1));
>
> Actually, this ExtendMethods.ConvertMap is an additional help for the
> user. If the user has a unknown type ar runtine, he van use this one to
> convert it. However, in the use cases of the bridge this will not happen
> from the user point of view (In the .Net Bridge, this is used very often).
> This test case is mainly for the test coverage. The method that the User
> uses ist:
> ExtendMethods.ConvertMap(Test); or ExtendMethods.ConvertMap(Test);
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/openengsb/loom-csharp/pull/48/files#r3509506>
> .
>