PDA

View Full Version : تبدیل نوع



bahram10
چهارشنبه 20 آذر 1392, 10:32 صبح
سلام بچه ها خسته نباشید

میخوام تبدیل نوع کنم ولی خطا میده که unable cast ....

با asم امتحان کردم نمیشه این سورس من:

SoapSmsQueuableImplementationService sms = new SoapSmsQueuableImplementationService();

sms.Credentials = new NetworkCredential(username, password);

sms.PreAuthenticate = true;

object[] mes= sms.getAllMessages(domain,numberOfMessages);

CustomerReturnIncomingFormat[] value = mes as CustomerReturnIncomingFormat[];//خطا

return value;

خواهشا هر کی میتونه سریع کمکم کنه کارم مونده:ناراحت:

fmehrvarzi
چهارشنبه 20 آذر 1392, 20:15 عصر
داداش این کدی که گذاشتی، بسیاری از تعاریف کلاس های مورد استفاده را نذاشتی ، الان من چطور این کدها را امتحان کنم!

habibb
پنج شنبه 21 آذر 1392, 00:03 صبح
SoapSmsQueuableImplementationService sms = newSoapSmsQueuableImplementationService();

sms.Credentials = newNetworkCredential(username, password);

sms.PreAuthenticate = true;

object[] mes= sms.getAllMessages(domain,numberOfMessages);

CustomerReturnIncomingFormat[] value = mes asCustomerReturnIncomingFormat[];//خطا

return value;



نامفهومه