Skip to content

Instantly share code, notes, and snippets.

@ItsSpyce
Created October 30, 2014 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ItsSpyce/01df97da52c3f02b8042 to your computer and use it in GitHub Desktop.
Save ItsSpyce/01df97da52c3f02b8042 to your computer and use it in GitHub Desktop.
Word
public void Commit()
{
foreach (var thread in Stack.Select(v => new Thread(() =>
{
using (var writer = File.OpenWrite(Location + "\\" + v.Key + ".vdb"))
{
foreach (
var s in
v.Value.GetType()
.GetProperties()
.Select(
property =>
property.Name + "::" + property.GetValue(v.Value) + Environment.NewLine))
{
writer.Write(Encoding.UTF8.GetBytes(s), 0, Encoding.UTF8.GetByteCount(s));
}
}
}))) thread.Start();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment