After suffering the consequences of accidentally turning off his firewall for a month and then experiencing a catastrophic workstation failure that took out both of his mirrored hard disks, Tim Patrick gained a new appreciation for online code repositories. He adopted VSTS and won't be looking back.
One situation that can prevent a successful file transfer is when the destination file is, in fact, the program that's doing the copying. Here's how to work around such problems.
OOP is a special kind of animal, says Tim Patrick, who shows how to put one of its core principles, encapsulation, to work while coding constructors for base and derived classes.
Today, application settings are more likely to appear in local XML files, but the Windows Registry and its hives of key/value pairs can also be used. The good news is that interacting with the Registry is straightforward, as Tim shows you here.
Learn how to keep new code-style warnings from filling up your formerly pristine Visual Studio Error List panel.
Regular expressions give Tim Patrick the creeps, but he overcame his fears by discovering specially crafted regex patterns can access data in a way that’s actually kind of cool.
If you've ever worked in an enterprise environment and fielded calls from employees unable to get into their accounts due to a depressed Caps Lock key, you know how essential the following tweak to your code can be.
Learn how providing information in available HTTP header elements can help make interactions between unrelated systems straightforward and meaningful.
Squash the dangers lurking in your SQL queries by setting parameters by way of parameterized queries.
C# finally gets the BASIC GOSUB feature through local functions, but local functions take that GOSUB-like capability up a few notches.
Lots of searching through lots of data means potential app performance degradation. Hash codes can speed things up.
The custom formatters in the .NET Framework provide a more seamless way to mix traditional and custom formatting situations.
While Visual Basic is a bit more forgiving with data conversions, you'll need to jump through some hoops to do similar conversions in C#.
We just covered background information on our last file processing foray. Now, what's faster: CRT, Windows API, or something else?
- By Bartlomiej Filipek
Welcome to the 21st century, C#, now that case blocks support a variety of pattern-matching formats.