I have this simple static class which is used so that I can access my AVLTree from everywhere in my application. For some reason however I am unable to call the variable from another class. Whenever I type Database. I only get two methods which are not what I want. I would like to access Database.countries however it is impossible.
static class Database
{
static AVLTree<Country> countries = new AVLTree<Country>();
static Database()
{
}
static AVLTree<Country> cees()
{
return countries;
}
static AVLTree<Country> Countries
{
get { return countries; }
}
}