Actually, there's absolutely wrong with using + for individual expressions; it is actually the correct way of doing it (a + b + c + d compiles to String.Concat(a,b,c,d) ) - the problem is if you are doing this in a…
"Step" is a static-call to an extension method. This way allows your code to keep working fine (unchanged) for users that aren't profiling (i.e. 99.99% of the users).
Note to go with this I've now updated the nuget package (http://nuget.org/List/Packages/MiniProfiler) so it is easy to deploy. Enjoy. (also: http://marcgravell.blogspot.com/2011/06/profiling-with-knobs...)
Actually, there's absolutely wrong with using + for individual expressions; it is actually the correct way of doing it (a + b + c + d compiles to String.Concat(a,b,c,d) ) - the problem is if you are doing this in a…
"Step" is a static-call to an extension method. This way allows your code to keep working fine (unchanged) for users that aren't profiling (i.e. 99.99% of the users).
Note to go with this I've now updated the nuget package (http://nuget.org/List/Packages/MiniProfiler) so it is easy to deploy. Enjoy. (also: http://marcgravell.blogspot.com/2011/06/profiling-with-knobs...)