In this example, an instance of BooleanSwitch is created as a static member of the class, and this variable is used to control whether output happens. If this code is run, it produces no output, but thedebugOutput ...
The Switch class nicely encapsulates getting the switch value from the registry, so it’s easy to derive a custom switch if the values of TraceSwitch don't work well. The following example implementsSpecialSwitch...
What is URL rewriting and what are it’s common uses? We’ll look to answer these questions in this article. URL rewriting can be defined as intercepting an HTTP call to a particular URL and redirecting it to a different URL, in effect “rewriting”...
The adoption rate for .NET technologies, released more than 2 years ago, continues to lag behind Microsoft's expectations. The set of .NET-based development tools that Microsoft launched in February 2002 included an IDE, the ASP.NET Web...
Clients commonly ask me how to bulk insert data into SQL Server from ADO.NET applications. There's no easy answer to this question because ADO.NET doesn't have any built-in bulk-insert objects. The most straightforward method for...
When you're writing sample code to reproduce a security violation, one of the challenges you face is that such code, by definition, incorporates poor practices. As you read the code examples in the main article, you might find yourself making...