How to convert this Java code in C# code?

I tried to convert my Java code in C# but I missed something. Java code public Map getData() { return data; } public void setDataCarriers(Map