fix csharp port and minor fix OctetsStream and Benchmark
add genbeans for c#
finish c# port for bean; minor fixes