private
static
bool
? debug;
public
static
bool
Debug
{
get
{
if
(debug ==
null
)
debug = System.Diagnostics.
Process
.GetCurrentProcess().ProcessName.ToLower().Contains(
"iisexpress"
);
return
debug ??
false
;
}
}