I get an error in the code below on the first mention of the word tables. I need that dictionary to be usable by all classes.
the error reads:
Error 1 Inconsistent accessibility: field type 'System.Collections.Generic.Dictionary' is less accessible than field 'RiskRatingReevaluation.RiskRatingLogic.tables' C:\Users\jholland\Documents\Visual Studio 2012\Projects\RiskRatingReevaluation\RiskRatingReevaluation\RiskRatingLogic.cs 13 49 RiskRatingReevaluation
public static class RiskRatingLogic
{
public static Dictionary<string, Table> tables;
public static void Main()
{
tables = new Dictionary<string, Table>();
ImportRegionIndexes(tables);
Any suggestions of what to change?