Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
Questionmaking the mouse perform a Drag-Drop with api Pin
jtmtv185-Nov-05 8:25
jtmtv185-Nov-05 8:25 
QuestionSingle Method With Mutiple Paremeters Pin
budidharma5-Nov-05 7:53
budidharma5-Nov-05 7:53 
AnswerRe: Single Method With Mutiple Paremeters Pin
[Marc]5-Nov-05 8:02
[Marc]5-Nov-05 8:02 
GeneralRe: Single Method With Mutiple Paremeters Pin
budidharma5-Nov-05 8:39
budidharma5-Nov-05 8:39 
GeneralRe: Single Method With Mutiple Paremeters Pin
J4amieC5-Nov-05 10:12
J4amieC5-Nov-05 10:12 
GeneralRe: Single Method With Mutiple Paremeters Pin
leppie5-Nov-05 18:57
leppie5-Nov-05 18:57 
GeneralRe: Single Method With Mutiple Paremeters Pin
J4amieC6-Nov-05 0:25
J4amieC6-Nov-05 0:25 
AnswerRe: Single Method With Mutiple Paremeters Pin
Heath Stewart6-Nov-05 6:01
protectorHeath Stewart6-Nov-05 6:01 
The reason is that the methods or constructors would have the same signature and that, of course, isn't allowed for overloads. See the IL for a method defined using the params keyword in C#:
.method public hidebysig instance void  Foo(object[] objects) cil managed
{
  .param [1]
  .custom instance void [mscorlib]System.ParamArrayAttribute::.ctor() = ( 01 00 00 00 ) 
  // Code size       2 (0x2)
  .maxstack  8
  IL_0000:  nop
  IL_0001:  ret
} // end of method Test::Foo
As you can see, the effect is achieved using an attribute but the parameter itself is just an object[] array.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft

[My Articles] [My Blog]
QuestionSystem Tray Icon Update Pin
Coffmans5-Nov-05 6:36
Coffmans5-Nov-05 6:36 
AnswerRe: System Tray Icon Update Pin
Heath Stewart5-Nov-05 12:33
protectorHeath Stewart5-Nov-05 12:33 
GeneralRe: System Tray Icon Update Pin
Coffmans5-Nov-05 13:33
Coffmans5-Nov-05 13:33 
GeneralRe: System Tray Icon Update Pin
Heath Stewart5-Nov-05 13:36
protectorHeath Stewart5-Nov-05 13:36 
QuestionProblems printing Pin
naglbitur5-Nov-05 6:15
naglbitur5-Nov-05 6:15 
AnswerRe: Problems printing Pin
Heath Stewart5-Nov-05 12:00
protectorHeath Stewart5-Nov-05 12:00 
GeneralRe: Problems printing Pin
naglbitur5-Nov-05 21:54
naglbitur5-Nov-05 21:54 
GeneralRe: Problems printing Pin
Heath Stewart6-Nov-05 5:55
protectorHeath Stewart6-Nov-05 5:55 
GeneralRe: Problems printing Pin
naglbitur31-Dec-05 8:02
naglbitur31-Dec-05 8:02 
AnswerRe: Problems printing Pin
Heath Stewart1-Jan-06 10:06
protectorHeath Stewart1-Jan-06 10:06 
GeneralRe: Problems printing Pin
naglbitur1-Jan-06 19:57
naglbitur1-Jan-06 19:57 
GeneralRe: Problems printing Pin
naglbitur28-Nov-05 12:45
naglbitur28-Nov-05 12:45 
GeneralRe: Problems printing Pin
Heath Stewart28-Nov-05 20:37
protectorHeath Stewart28-Nov-05 20:37 
GeneralRe: Problems printing Pin
naglbitur29-Nov-05 6:40
naglbitur29-Nov-05 6:40 
QuestionMail Server Windows App C# Pin
TAREQ F ABUZUHRI5-Nov-05 6:04
TAREQ F ABUZUHRI5-Nov-05 6:04 
AnswerRe: Mail Server Windows App C# Pin
Heath Stewart5-Nov-05 11:54
protectorHeath Stewart5-Nov-05 11:54 
QuestionSend EnterKey to telnet Pin
Niles Davis5-Nov-05 3:51
Niles Davis5-Nov-05 3:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.