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