While

Code Example - While

                
                        FunctionPointerExample objFunctionPointerExample = new FunctionPointerExample();

//Call GetName function using TestDelegate
TestDelegate objDelegate1 = new TestDelegate(objFunctionPointerExample.GetName);
objDelegate1.Invoke("Mukesh Kumar");