c# - Cannot implicitly convert type 'ArrayofString' to 'string[]' in Console Application -


in wcf project i'm using string[] function , calling string[] function console application adding service reference. shows error:

cannot implicitly convert type 'arrayofstring' 'string[]' in console application.

i can not solve problem times working fine if recreate service reference shows error said above. sample code given below

public string[] set_prov_from_invoice(int type, int cust_id, int plan_id,                      string invoice_id, string in_parameter, string in_fld_action,                     string get_value, ref string rtn_value) // invoice_id = customer invoice table id , cust_id = customer id, type = 4  prov tagk {    system.collections.arraylist prov_result = new system.collections.arraylist();    return prov_result.toarray(typeof(string)) string[]; }  string[] ret_prov_tag = obj.set_prov_from_invoice(4, convert.toint32(cust_id), 0,                                                    in_fld_invoice_id, "", "create",                                                    set_value, ref prov_rtn); 


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -