c# - The best overloaded method match for has some invalid arguments -


When I hold the following line of code I get an error:

  using (_client = new RestClient ( "url", this))   

error: to 'MyNamespace.RestClient (MyNamespace.MyPresenter, string) the Good overloaded method matching is 'some invalid argument'

I have seen one of these million "matching best overload method for thread" but my problem looks a bit different. Detailed Compiler Output states that can not be changed by it:

MyPresenter [C: \ path \ to \ class \ file] from MyPresenter [C: \ Windows \ Microsoft.NET \ Framework64 \ v4 .0.30319 \ temp ASP .NET files \ root \ 3d988ef4 \ 66e82b30 \ assembly \ dl3 \ 995d0d63 \ 042c184e_aae2cf01 \ ProjectName.DLL]

I'm not sure what is going wrong here.

  // default.aspx.cs (visual class) public partial class MyView: Page {Private Readonly MyPresenter _presenter; Public MyView () {_presenter = New MyPresenter (this); } Public Text Box Output Text {{Get Output Output;}} Secure Zero Page_load (Object Sender, EventErgus E) {} Secure Voude GoButton_OnClick (Object Sender, EventArchase EventRG) {_presenter.DoStuff ();}} // default Aspx.designer.cs public partial class MyView {protected global :: system web.ui.webcontroll button button button; protected global :: system web.ui.web.control.Takebox output text;} // MyPresenter.cs bit Public Square MyPresenter {Private RestClient _client; Public MyPresenter (see MyView) {View = View;} View Public MyView {get; Private Set;} Public Zero DoStuff () {** Use (_client = New RestClient ("url" This)) ** // Here error {_client.DoClientStuff ()}}} // RestClient.cs Public class RestClient {Private Readonly MyPresenter _presenter; Private Readonly String _url; Public Rest Client (String URL, MyPassenger Presenter) {_presenter = Presenter; _url = url;} Public Zero DoClientStuff () {_presenter.View.OutputText.Text = "Customer Service AOL Content is "; }}    

You have the back criteria

   

should be using (_client = new RestClient ("url", this))

  (_client = New RestClient (this, "url "))    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -