grauenwolf


Comments:

Quick Tip: Use System.IO.Path.Combine instead of string concatenation

posted by grauenwolfgrauenwolf(75) 4 years, 11 months ago 0

Just make sure you watch out for absolute paths in the second argument. I have seen security holes caused by people trying to use Path.Combine to keep users within a specific directory.

http://grauenwolf.spaces.live.com/blog/cns!410AE16A9B73776E!164.entry

Reply

What is the fastest, DRYest way to (not) log?

posted by grauenwolfgrauenwolf(75) 4 years, 10 months ago 0

Seems to me that if logging performance is a concern then there is something seriously wrong.

Reply

Using The "Using" Statement On a Method Rather Than a Class

posted by grauenwolfgrauenwolf(75) 3 years, 9 months ago 0

Why are you'all acting like assholes?

It is just a title for crying out loud. What's important is the demonstration of the using block without the need for an explicit variable.

Reply