I am trying to set the array keys as a strings like in the example below, but inC#.
C#
Uhm I'm guessing you want a dictionary:
using System.Collections.Generic; // ... var dict = new Dictionary(); dict["key_name1"] = "value1"; dict["key_name2"] = "value2"; string aValue = dict["key_name1"];