Learning from code
TBH has this code in the globals.cs file:
using System;
using System.Data;
using System.Configuration;
using System.Web.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
namespace MB.TheBeerHouse
{
publicstaticclassGlobals
{
publicreadonlystaticTheBeerHouseSection Settings = (TheBeerHouseSection)WebConfigurationManager.GetSection("theBeerHouse");
publicstaticstring ThemesSelectorID = "";
static Globals()
{
}
}
}
why is the static Globals() there? What does it do?
Thanks,
|