Results 1 to 4 of 4

Thread: error CS1501: No overload for method

  1. #1
    Join Date
    Feb 2009
    Posts
    17

    error CS1501: No overload for method

    Hello , i Get This Error Message When i Try to Compile a Program in C# Sharp , please Tell me what is this cs1501: no overload for method 'isnullorempty' takes '0' arguments Mean , And How can i resolve these Error , please help me Thanks in advance

  2. #2
    Join Date
    Nov 2005
    Posts
    1,203

    Re: error CS1501: No overload for method

    The CS1501 error can occur if you call a method on a class in a referenced assembly, and if this method defaults on one or more of its parameters. C # does not allow you to create methods with a default value to a setting unlike any other language that targets the runtime. If a parameter (in a method of a referenced assembly) has a default value, you must call the method and pass all the parameters explicitly.

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: error CS1501: No overload for method

    The CS1501 error can occur when you allocate memory for a delegate, you must also specify the name of the method represented by the delegate,
    you may needed to put in what string you are looking for in IsNullOrEmpty. So you would have, say, Equals(String.IsNullOrEmpty(textBox1.tex()) Or whatever string parameter you require there.

  4. #4
    Join Date
    May 2008
    Posts
    2,012

    Re: error CS1501: No overload for method

    CS1501 also occurs if you try to instantiate a derived class that inherits a base class which has no default constructor, a constructor is not defined by default which takes one or more arguments. To correct the error, provide a default constructor for the base class or use the keyword base to call the constructor of the appropriate base class

Similar Threads

  1. Getting error: HTTP Error 405 Method not allowed
    By Mongoli in forum Technology & Internet
    Replies: 4
    Last Post: 20-04-2012, 07:24 AM
  2. how to overload a function in c++
    By Calandar in forum Software Development
    Replies: 4
    Last Post: 08-01-2011, 10:32 AM
  3. Replies: 5
    Last Post: 15-12-2010, 07:18 PM
  4. Overload SET accessor in C#
    By $tatic in forum Software Development
    Replies: 3
    Last Post: 31-03-2009, 10:02 PM
  5. Suffering from 100% cpu overload
    By Renderman21 in forum Windows Software
    Replies: 4
    Last Post: 13-08-2008, 02:34 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,132,614.83840 seconds with 16 queries