Java and CSharp compatibility