ykb sanal post icin Vb ye göre asagıdakı gibi var olan örnek kodları http://www.developerfusion.com/tools/co ... to-csharp/ adresnden cevirtiyorum fakat calısmıyor hata verıyor.var result =false yaptım yine calısmadı. neden olabilir ?
vb:
Dim posnetObj As New C_Posnet, result As Boolean = False
..........
....
result = posnetObj.DoSaleTran(Me.ccno.Text, Me.expdate.Text, Me.cvc.Text, Me.orderid.Text, Me.amount.Text, Me.currencyCode.Text, Me.instNumber.Text)
c#:
C_Posnet posnetObj = new C_Posnet();
bool result = false;
..........
.......
result = posnetObj.DoSaleTran(this.ccno.Text, this.expdate.Text, this.cvc.Text, this.orderid.Text, this.amount.Text, this.currencyCode.Text, this.instNumber.Text);
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1501: No overload for method 'DoSaleTran' takes '7' arguments
No overload for method 'DoSaleTran' takes '7' arguments
Re: No overload for method 'DoSaleTran' takes '7' arguments
result kullanımı ile ilgili sorun var sanırım. yardım lütfen arkadaslar
asagıda kı resımde ctrl space yaparak objectin bool oldugunuda goruyorum
asagıda kı resımde ctrl space yaparak objectin bool oldugunuda goruyorum
Re: No overload for method 'DoSaleTran' takes '7' arguments
Merhaba ,
c# hakkında pek tecrübeli olduğumu söyleyemem fakat verdiği hataya göre, ilgili metoda fazla yada eksik parametre geçiyorsunuz, parametre sayısını kontrol ettiniz mi?
c# hakkında pek tecrübeli olduğumu söyleyemem fakat verdiği hataya göre, ilgili metoda fazla yada eksik parametre geçiyorsunuz, parametre sayısını kontrol ettiniz mi?
Volkan KAMADAN
www.polisoft.com.tr
www.polisoft.com.tr
Re: No overload for method 'DoSaleTran' takes '7' arguments
ekran görüntüsüne göre fonksiyon 9 parametre alıyor..
overload da parametre sayısı ve tipi önemlidir, geri dönüş değeri değil, o nedenle bool un bi anlamı yok
overload da parametre sayısı ve tipi önemlidir, geri dönüş değeri değil, o nedenle bool un bi anlamı yok
Re: No overload for method 'DoSaleTran' takes '7' arguments
posnetObj.DoSaleTran metodunu görebilirmiyiz?