Fixed errors in java examples.
Added C# examples.