namespace SampleThreading { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : System.Windows.Window { public MainWindow ( ) { InitializeComponent ( ); Thread th = new Thread ( new ThreadStart ( CopyFile ) ); th.IsBackground = true; th.Start ( ); } private void CopyFile ( ) { } } }
public MainWindow ( ) { InitializeComponent ( ); Thread th = new Thread ( ( ) => { while ( true ) { CopyFile ( ); } } ); th.Start ( ); }
CopyFile
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)