I am trying to set the array keys as a strings like in the example below, but inC#.
C#
You could use a Dictionary:
Dictionary dictionary = new Dictionary(); dictionary["key_name"] = "value1";