Created
October 30, 2014 01:56
-
-
Save ItsSpyce/01df97da52c3f02b8042 to your computer and use it in GitHub Desktop.
Word
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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