Top "Method-invocation" questions

How to execute a method passed as parameter to function

I want to write my own function in JavaScript which takes a callback method as a parameter and executes it …

javascript invoke method-invocation
How to suspend a java thread for a small period of time, like 100 nanoseconds?

I know Thread.sleep() can make a java thread suspend for a while, like certain milliseconds and certain nanoseconds. But …

java sleep thread-sleep method-invocation nanotime
MethodInvoke delegate or lambda expression

What is the difference between the two? Invoke((MethodInvoker) delegate { checkedListBox1.Items.RemoveAt(i); checkedListBox1.Items.Insert(i, temp + validity); …

c# delegates lambda invoke method-invocation
Invoke method with an array parameter using reflection

I am attempting to write a method the executes a static method from another class by passing an array of …

java reflection method-invocation
Understanding the Dispatcher Queue

I think I need some help understanding the Dispatcher Queue. When new work arrives it gets added at the beginning …

c# wpf asynchronous dispatcher method-invocation
Hit a bean method and redirect on a GET request

I'm using JSF 2 and PrimeFaces 2.1 on GlassFish. I have a page that is intended to allow people to perform an …

jsf jsf-2 query-string http-get method-invocation
What is the difference between message-passing and method-invocation?

Is there a difference between message-passing and method-invocation, or can they be considered equivalent? This is probably specific to the …

language-agnostic message-passing method-invocation
Ambiguous invocation caused by picking up two versions of System.Linq

I have the following code, which shows a squiggly red line under the lambda expression after .Any( because of an "…

linq reference orchardcms method-invocation ambiguous-call
Java: How to call a function whose name is stored in a string variable

I have a generic string stored in a variable String func = "validate"; and i want to call the function of …

java reflection method-invocation
Can I check if a void method returned?

I just want to ask, if it is possible to check if a void method "cancelled" itself by calling return;? …

java arrays method-invocation return