Game Development Reference
In-Depth Information
}
}
protected virtual void Process(IFileAccessLogic logic, FileInfo fileInfo)
{
if (OnProcess != null)
OnProcess(this, fileInfo);
}
}
}
Conclusion
On the Companion Web site are two examples showing a number of features of
this framework.
There is a simple listing example that does not perform any file modification, so it
is safe to run from the top-level directory of your hard drive for the best perfor-
mance results. This example shows how to use the delegate approach to specify the
worker function.
The other example is a search and replace process that searches for all .txt files in the
directory structure and replaces a particular search pattern with another specified
word.
Caution
The search and replace example should be used with care so you do not modify the wrong files!
 
Search Nedrilad ::




Custom Search