Translate code written in angular with javascript to c# code

  angular, c#, javascript

in angular I have this code:

let data:{[key:string]:number}={};

if("word" in data) {
      ++data["word"];
} else {
      data["word"] = 1;
}

How do I write the same code but in c#?

Source: Ask Javascript Questions

LEAVE A COMMENT