how to export a type with generic argument

24 views
Skip to first unread message

eguardiola

unread,
May 25, 2012, 3:54:04 AM5/25/12
to jay...@googlegroups.com
Hi!

How can i export this type of object?

    public class ListProxy<T>
    {
        public IList<T> List { get; set; }

        public ListProxy(IList<T> list)
        {
            List = list;
        }
    }

Currently only a string with the FQN of the type and the generic parameter is exported.




Atif Aziz

unread,
May 25, 2012, 4:13:14 AM5/25/12
to jay...@googlegroups.com
You have two options. You can get it working right away by adding a default constructor or go through the more proper but also slightly more involved way of writing an IExporter implementation for ListProxy<T>.

- Atif






--
You received this message because you are subscribed to the Google Groups "Jayrock" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jayrock/-/mkU4reh2x6wJ.
To post to this group, send email to jay...@googlegroups.com.
To unsubscribe from this group, send email to jayrock+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jayrock?hl=en.

Eduardo Guardiola

unread,
May 25, 2012, 4:42:22 AM5/25/12
to jay...@googlegroups.com

Thanks Atif. The default constructor way is enough :-)


El viernes, 25 de mayo de 2012 10:13:14 UTC+2, Atif Aziz escribió:
You have two options. You can get it working right away by adding a default constructor or go through the more proper but also slightly more involved way of writing an IExporter implementation for ListProxy<T>.

- Atif

On Fri, May 25, 2012 at 9:54 AM, eguardiola > wrote:
Hi!

How can i export this type of object?

    public class ListProxy<T>
    {
        public IList<T> List { get; set; }

        public ListProxy(IList<T> list)
        {
            List = list;
        }
    }

Currently only a string with the FQN of the type and the generic parameter is exported.





--
You received this message because you are subscribed to the Google Groups "Jayrock" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jayrock/-/mkU4reh2x6wJ.
To post to this group, send email to jay...@googlegroups.com.
To unsubscribe from this group, send email to jayrock+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages