I want to create a wrapper that will bind a function to a progressbar such that I will call it alike ProgressBar.ReportProgressFor(MyDefinedFunction()) in c#.How can I do t