No announcements
Found 1470820 threads
-
0 Votes
Method overload with object parameters
Given that you have void foo(string a); void foo(object a); and call foo with object parameter (that contains string), then the overload that takes ...Answered | 7 Replies | 6818 Views | Created by sn75 - Tuesday, October 13, 2009 1:57 PM | Last reply by sn75 - Tuesday, October 13, 2009 2:41 PM -
6 Votes
Method Overloading with Data type as Object
The last resort is a method accepting `object`.Answered | 7 Replies | 746 Views | Created by LordPhyber - Tuesday, February 25, 2020 9:58 AM | Last reply by Daniel_Zhang-MSFT - Monday, March 2, 2020 8:19 AM -
0 Votes
Overloading Methods
Because mixing overloads with optional parameters creates confusion.Answered | 6 Replies | 477 Views | Created by Chayce Ross - Tuesday, January 5, 2016 9:47 AM | Last reply by Stefan Hoffmann - Tuesday, January 5, 2016 12:18 PM -
12 Votes
CLR Bug with overload Methods?
The C# specification also states that when determining which overload to call, the one with the more specific parameter type is the better method.Answered | 43 Replies | 6677 Views | Created by Deleted-Deleted - Thursday, March 15, 2012 11:55 AM | Last reply by Paulo Morgado - Thursday, April 12, 2012 12:38 AM -
1 Votes
Method overloading in C#.NET
I would want to know that the way VB.NET provide Optional Keyword as a part of function parameter, what can be alternatives in C# .NET 3.5 (Except Method ...Answered | 6 Replies | 3985 Views | Created by omanvilla - Sunday, December 4, 2011 8:31 AM | Last reply by Ehsan Mokhtari - Sunday, December 4, 2011 9:19 PM -
1 Votes
What is the use of Method overloading
As you can see, object a and b are of type Baseclass but when function F is called, it does not print the same thing.Answered | 9 Replies | 2739 Views | Created by SomuAri - Wednesday, December 3, 2008 2:27 PM | Last reply by Mitchel Sellers - Wednesday, December 3, 2008 7:49 PM -
0 Votes
Differences between method overloading and Generics
Hi, It appears there is no relation between method overloading and Generics.Answered | 4 Replies | 7861 Views | Created by srkvellanki - Monday, April 20, 2009 4:38 PM | Last reply by DeborahK - Friday, April 24, 2009 3:02 PM -
5 Votes
How do I overload a method when using 'object'?
In this case, IMO, it is better to have overloading of constructor (in addition to method overloading).Answered | 7 Replies | 1958 Views | Created by sjs1978 - Tuesday, September 11, 2012 4:14 PM | Last reply by Joel Engineer - Tuesday, September 11, 2012 8:14 PM -
1 Votes
Generic method and overload resolution
"all constructed types in the parameter list of F satisfy their constraints" I understand now.Answered | 9 Replies | 4247 Views | Created by Louis.fr - Tuesday, June 22, 2010 4:26 PM | Last reply by Louis.fr - Thursday, June 24, 2010 12:46 AM -
0 Votes
method overloading is not possible for anonymous functions.
The basic understanding of overloading is "multiple functions with the same name differing in the number of parameters and order of parameters".Answered | 2 Replies | 787 Views | Created by Arash_89 - Sunday, December 29, 2013 9:59 PM | Last reply by Jeetendra Khandelwal - Monday, December 30, 2013 7:14 AM -
0 Votes
FromXYZ vs Overloaded Method
I think "Load" is the way to go for a few reasons: The parameter type is already in the parameter list- why specify it ...Answered | 3 Replies | 677 Views | Created by NAVI.E - Saturday, April 4, 2015 11:39 AM | Last reply by EngSoonCheah - Sunday, April 5, 2015 2:31 AM -
0 Votes
problem: method not overload
. :) As I suspected, the message you are getting is "No overload of method 'celotnoImeUčitelja_Prijava' takes only '1' parameter".Answered | 6 Replies | 3075 Views | Created by Mitja Bonca - Monday, April 27, 2009 2:02 PM | Last reply by Rudedog2 - Monday, April 27, 2009 6:05 PM -
0 Votes
Optional Parameters vs Overloading
You have more likely other areas where it would matter much more (BTW technically speaking there is IMO no difference at all with regular method calls.Answered | 2 Replies | 1525 Views | Created by Krishna Sarma - Thursday, March 7, 2013 10:31 AM | Last reply by Patrice Scribe - Thursday, March 7, 2013 11:02 AM -
0 Votes
Method Overload (string and numeric)
All stuff that inherits from Object (including the value type base struct) has the ToString() method.Answered | 6 Replies | 766 Views | Created by Richard Hildreth - Saturday, June 20, 2015 3:56 AM | Last reply by Christopher84 - Saturday, June 20, 2015 10:44 AM -
0 Votes
No overload for method takes 2 arguments_
The error message means that the HellpWorld method that you created does not take two parameters.Answered | 2 Replies | 2752 Views | Created by Saddaf_Mubarik - Friday, August 8, 2014 5:42 PM | Last reply by Doanh, Qh - Saturday, August 9, 2014 3:36 AM -
1 Votes
method overload question
Hello Medusa, Overloading is what happens when you have some methods with the same name but different signatures.Answered | 6 Replies | 524 Views | Created by Medusa3604 - Wednesday, November 8, 2017 8:50 PM | Last reply by Fei Hu - Wednesday, November 15, 2017 10:32 AM -
0 Votes
Pass a method as parameter, with diferent input parameters
and then as parameter, you need to pass That unknown type again to the delegate...., also you need to provide an object from that ...Answered | 6 Replies | 2033 Views | Created by deadManN - Friday, December 30, 2011 10:39 AM | Last reply by deadManN - Friday, January 6, 2012 8:06 AM -
0 Votes
overloading minus object
I want to overload the "-Object" where the "-" precedes the object and changes the sign of the members.I understand how to do "ObjectA - ...Answered | 1 Replies | 1148 Views | Created by jek314 - Thursday, August 8, 2013 12:28 PM | Last reply by davewilk - Thursday, August 8, 2013 12:41 PM -
0 Votes
Overload of methods in generic classes under C#
I use the generic parameter to select an object that implements the interface.Answered | 10 Replies | 3747 Views | Created by Loïc Morvan - Wednesday, July 15, 2009 12:20 PM | Last reply by Rudedog2 - Thursday, July 16, 2009 10:15 PM -
0 Votes
How to clear No overload Method Open?
Hi, As per msdn the Open method is expecting 16 parameters.Answered | 1 Replies | 1943 Views | Created by HarvestHappiness - Wednesday, May 9, 2012 5:50 AM | Last reply by A.m.a.L Hashim - Wednesday, May 9, 2012 6:01 AM - Items 1 to 20 of 1470820 Next ›
No announcements