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

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

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -