Hi I am working on a simple desktop application, it has to handle some operations, such as loading a web page that can block the main thread, so I moved the code to a background worker.
My problem is that there is a heavy class called UCSProject that contains a lot of rows and List fields, I need to pass an instance of this class to a background worker, since the class is a bit heavy, I would like to reduce the number of duplicate instances using a global variable directly. instead of passing it as an argument to the desktop background.
To do this briefly, I just want to know whether it is safe to access global variables from a workflow in C #
source share