[operationcontract] list< result> method(string name); [datacontract] public class result { [DataMember] public int no { get { return no;} set { no= value; } } [DataMember] public int age { get { return age;} set { age= value; } } }
public list< result> method( string name) { sqlcon sql command type procedure name-input,no-output,age-output result rs=new result(); rs.no=cmd.parameters["@no"].value; rs.age=cmd.parameters["@age"].value; list< result> rls=new list< result>; rls.add(rs); }
ServiceReference2.Service1Client obj2 = new ServiceReference2.Service1Client();
Error 18 Cannot implicitly convert type 'sample.ServiceReference2.result[]' to 'System.Collections.Generic.List'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)