winforms - can a BackgroundWorker object in c# be ran without a Windows Forms? -


i need develop c# application using **backgrounworker**, without using windows forms. i've seen examples presented microsoft regarding use of backgrounworker class, , they're developed windows forms. can use backgroundworker without windows forms ? if so, please provide detail. in advance !

in c# there can use tasks or threads both used run in background in separated execution context ( separated thread )

this simple example using thread

    using system.threading;       // creating new thread , pass delegate run       thread thread = new thread(new threadstart(workthreadfunction));     // command start thread     thread.start();      public void workthreadfunction()     {          // background work      } 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -