PC Review


Reply
 
 
shapper
Guest
Posts: n/a
 
      10th Jan 2008
Hello,

I am working on a control that needs to have various functions with
the same name but different number of inputs.
How should I do this?

Thanks,
Miguel
 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      10th Jan 2008
That is called different signatures. Functions with different signatures are
different functions, even if they have the same name. That is

string foo (string ss)

has nothing to do with

string foo (int i)

So just code every function separately.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin


"shapper" <(E-Mail Removed)> wrote in message
news:d1b31f88-f727-46e4-8c36-(E-Mail Removed)...
> Hello,
>
> I am working on a control that needs to have various functions with
> the same name but different number of inputs.
> How should I do this?
>
> Thanks,
> Miguel



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C# constructor best practice: how much logic to place in a C#constructor Jon Microsoft C# .NET 2 11th Nov 2009 09:18 PM
Overloading a constructor/default constructor =?Utf-8?B?UmljaA==?= Microsoft VB .NET 4 9th Jun 2005 12:14 AM
overloaded constructor, access zero-argument constructor mblatch Microsoft C# .NET 3 8th Apr 2005 09:53 PM
Calling a struct constructor in a class constructor body Karl M Microsoft VC .NET 4 19th Dec 2004 01:21 PM
Calling overloaded constructor with values inside another constructor Tristan Microsoft C# .NET 2 30th Mar 2004 01:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:50 PM.