A quick array question

I’m sorry, But I have no idea where to turn with this.
I’m currently writing a little windows application for fun and I would like to know how to create an array which indexes using a string in csharp (Like so):

string[] sArray = new string[6]; sArray["one"] = "string";

Does anybody know how to do this?

Many thanks in advance!

local sArray = {}

sArray[“one”] = “string”

An indexed/associative array/dictionary/map.

That would be true in Lua, but what about cSharp?

IDictionary<string, string> sArray = new Dictionary<string, string>();
sArray[“one”] = “string”;

It’s been ahwile since I used C# so that may not be correct.

I might kiss you. Thank you so much!!!

OK, settle down boys, enough with the rough housing.

local sArray = {}

sArray[“one”] = “string”

An indexed/associative array/dictionary/map.

That would be true in Lua, but what about cSharp?

IDictionary<string, string> sArray = new Dictionary<string, string>();
sArray[“one”] = “string”;

It’s been ahwile since I used C# so that may not be correct.

I might kiss you. Thank you so much!!!

OK, settle down boys, enough with the rough housing.