Click here to Skip to main content
14,882,311 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what is invoke method will do? and
when & where we can use it? and
why we are using that?

1 solution

sorry i dnt knw much about c# but i have to knw is invoke method a predefined function or what.

if ur just asking what is invoke method it means calling the method i.e a function.

when u have lots of code u just distribute that in small functions and then just call the that means invoke then
void a()//function definition
//some code

somewhere else

a(); // calling i.e invoking the method
now whenever the program pointer will come here it will diverted to the
function definition and after executing that code it will return back to the calling place..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900