var profiler = MiniProfiler.Current; // it's ok if this is null
using (profiler.Step("Set page title"))
huh?
using (profiler.Step("Set page title"))
huh?
Strange, but does enable some interesting syntactic sugar checking for empty values etc.
So then you can say if(foo.Exists()) { foo.bar(); }
Or make Exists return an instance of Foo (foo if not null, a new Foo if not) and go with foo.Exists().bar();