I am coming over from the Java world and this construct is driving me nuts:
private static string _muiUrl;
private static string MUIUrl
{
get
{
if (String.IsNullOrEmpty(_muiUrl))
{
using (var db = new IntLMPDB())
{
_muiUrl =
(from c in db.Control where c.ControlKey == "MUI_Url" select c.ControlValue).FirstOrDefault();
}
}
return _muiUrl;
}
}
When I see that in a class and I want to use that property in the class itself, how should I call it?