public static class ExtensionMethod { public static TResult SafeInvoke(this T isi, Func call) where T : ISynchronizeInvoke { if(isi.InvokeRequired)...
c# thread safe extension method
read more
public static class ExtensionMethod { public static TResult SafeInvoke(this T isi, Func call) where T : ISynchronizeInvoke { if(isi.InvokeRequired)...