Understanding CallBack function on Thread.
Understading Callback method wher a function is executed not on the main thread but on a child thread that it created . Similary there are different ways of executing function created on the child thread. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Memory_understanding { public delegate void sumofnumberscallback(int sumofnumber); class A { int target; public A(int num) { this.target= num; } public void printNumber(int n) { ...
Comments
Post a Comment