c# - Can't pass a List<Guid> as a parameter to a web-service in SL3 -


i have following web-method:

namespace messageservice{ ...     [webmethod]     public servicereturncodes setmsg(list<guid> ids, datetime processdatetime)     {         bl.setmsg(ids, datetime.now);        } } 

but when call method:

public list<guid> ids = new list<guid>(); ... service.setmsg(ids, datetime.now); 

i following error: argument '1': cannot convert 'system.collections.generic.list' 'messageweb.messageservice.arrayofguid' can't figure out arrayofguid , why tries convert.

i able use arrayofguid type create list , pass parameter:

arrayofguid ids = null; ids.add(id); .... service.setmsg(ids, datetime.now); 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -