amillyard
asked on
how do change the attach code snippet to become a 2 or 3 dimensioned variable array?
how do change the attach code snippet to become a 3 dimensioned variable array?
i.e. string, bool & int values per entry
i.e. string, bool & int values per entry
private static string[] inputWords;
public static string[] _inputWords
{
get { return inputWords; }
set { inputWords = value; }
}
ASKER
CuteBug: thanks -- but I am not quite understanding the changes (..)
value
[0] -- should contain a string, bool and int value
[1] -- should contain a string, bool and int value etc....
value
[0] -- should contain a string, bool and int value
[1] -- should contain a string, bool and int value etc....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am getting the following compile error
Error 1 Inconsistent accessibility: property type 'GlobalVars.MyData[]' is less accessible than property 'MENTOR_AI.GlobalVars._inp utData
Error 1 Inconsistent accessibility: property type 'GlobalVars.MyData[]' is less accessible than property 'MENTOR_AI.GlobalVars._inp
ASKER
it's ok -- I had a 'public' as follows:
public struct MyData
public struct MyData
private static string[,,] inputWords;
public static string[,,] _inputWords
{
get { return inputWords; }
set { inputWords = value; }
}