Click here to Skip to main content
15,889,335 members
Home / Discussions / C#
   

C#

 
Questionhow to define an array? Pin
susan200620068-May-06 21:56
susan200620068-May-06 21:56 
AnswerRe: how to define an array? Pin
sathish s8-May-06 22:04
sathish s8-May-06 22:04 
AnswerRe: how to define an array? Pin
Shajeel8-May-06 22:08
Shajeel8-May-06 22:08 
QuestionConverting DataTable into an array of Bytes Pin
Mohamed El Gohary8-May-06 21:53
Mohamed El Gohary8-May-06 21:53 
QuestionSQL Query String Pin
cshivaprasad8-May-06 21:29
cshivaprasad8-May-06 21:29 
AnswerRe: SQL Query String Pin
J4amieC8-May-06 21:58
J4amieC8-May-06 21:58 
GeneralRe: SQL Query String Pin
cshivaprasad9-May-06 0:36
cshivaprasad9-May-06 0:36 
QuestionReflection and Overloaded Methods Problem ! Pin
User 20930738-May-06 21:18
User 20930738-May-06 21:18 
Dear Friands,
I have two overloaded methods with the following signatures in 'MyClass' that is a class library in a dll file and I want to invoke a method from this dll at runtime by reflection:

public class MyClass()
{
  public int MyMethod(ref int intParam)
   {
     intParam += 100;
     return Math.Sin(intParam);
   }

  public int MyMethod(int intParam)
   {
     intParam += 100;
     return Math.Sin(intParam);
   }
}


When I use typeof(MyClass).GetMethod("MyMethod"); ,System.Reflection.AmbiguousMatchException is throw !!

If I use
typeof(MyClass).GetMethod("MyMethod",new Type [] {typeof(int)});
The second overloaded method with the value parameter invokes.
How can I force the CLR to run the first method and pass the parameter to it by reference ?

Regards,
Xironix


[ _ Always there is another way _ ]
QuestionUpdating the status Pin
Rizwan Rathore8-May-06 21:04
Rizwan Rathore8-May-06 21:04 
AnswerRe: Updating the status Pin
sathish s8-May-06 21:16
sathish s8-May-06 21:16 
GeneralRe: Updating the status Pin
Rizwan Rathore8-May-06 21:22
Rizwan Rathore8-May-06 21:22 
AnswerRe: Updating the status Pin
sathish s8-May-06 21:42
sathish s8-May-06 21:42 
GeneralRe: Updating the status Pin
Rizwan Rathore9-May-06 0:35
Rizwan Rathore9-May-06 0:35 
QuestionHow to use msiHiddenProperties property for MSI. I am using VS.NET IDE [Need Help] Pin
Kumar Shanmugam8-May-06 20:08
professionalKumar Shanmugam8-May-06 20:08 
Questionsome logical error in this.. help needeeeeeeeedddddddddddddddddddd Pin
chezhian_in058-May-06 19:03
chezhian_in058-May-06 19:03 
AnswerRe: some logical error in this.. help needeeeeeeeedddddddddddddddddddd Pin
led mike8-May-06 19:39
led mike8-May-06 19:39 
AnswerRe: some logical error in this.. help needeeeeeeeedddddddddddddddddddd Pin
J4amieC8-May-06 21:54
J4amieC8-May-06 21:54 
QuestionFailed to access IIS metabase Pin
V.thakur8-May-06 18:24
V.thakur8-May-06 18:24 
AnswerRe: Failed to access IIS metabase Pin
khanfresh11-May-06 23:11
khanfresh11-May-06 23:11 
QuestionHow to add a context menu to notifyicon for window service? Pin
sinanju8-May-06 16:15
sinanju8-May-06 16:15 
QuestionGive me advises about DoS recognition from Sniffer program! Pin
khanfresh8-May-06 16:05
khanfresh8-May-06 16:05 
AnswerRe: Give me advises about DoS recognition from Sniffer program! Pin
leppie8-May-06 20:43
leppie8-May-06 20:43 
QuestionPreventing unauthorized code execution Pin
Office Lineman8-May-06 14:41
Office Lineman8-May-06 14:41 
QuestionRe: Preventing unauthorized code execution Pin
Office Lineman9-May-06 7:30
Office Lineman9-May-06 7:30 
QuestionComparing two HTMLDocuments Pin
makuda8-May-06 13:59
makuda8-May-06 13:59 

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.