Typed binary stream reader/writer

Remember back in the good (?) old days when you could open a file containing a collection of records and access the records directly? Quite useful if you don't have a database, or if you just need to access the records stack-like. I implemented a C#3.0 class library that is allows you to write this kind of LINQ friendly file access:

    new TypedReader<Employee>(File.Open("dut"), recordSize)
    .First(f => f.ID == 43));

The source code is on http://typedserializer.codeplex.com/ and you can download the assembly directly from here.

m@kli.dk @klinkby RSS feed  GitHub