I have an array of structure objects initialized like below:
struct1 SettingList[] = { {"as","bs","cs"} , {"ak","bk",ck"} }
struct1 is defined as follows:
struct1{char[] str1; char[] str2; char[] str3}
I was translating some C++ code to C# and in the c++ code I saw an object accessed like below:
SettingList["as"].str1
How can you access an object with the first member of that object? How would I do that in c# without having to specify SettingList[0].str1