The Next Viral Video!
I really have no idea if it will get less than a hundred views or go viral, or most likely fall somewhere in between. But, it sure was fun to make, and a great way to try out some things on my new CyberLink Director Suite 6 software. The kids and I rocked in New Years Eve by making the first YouTube video, Disney Didn't Start Star Wars, . . .
Electrical Switch Contacts
When it comes to electrical switches and contacts, many people seem to be confused by the terms Normally Open (NO) and Normally Closed (NC). The root of the problem seems to start with the fundamental concept of what it means to be open or closed. This post attempts to clarify those concepts.
In every day terminology, movement is allowed when . . .
Check your UISettings.config
For the past several weeks, my Visual Studio (VS) / Team Foundation Server (TFS) has been freezing more and more. It started with file comparisons, moved to synchronizations, progressed to numerous other functionality,and eventually reached the point where I could not even submit any code changes. I uninstalled/reinstalled Visual Studio . . .
Can use this for escaping XML values, etc.
String.Replace() function can be used to replace all instance one character with another character (
String.Replace(char, char) ), or all instance of one substring with another string (
String.Replace(char, char) ). But, it is sometimes necessary to replace all instance of several different characters with a different string for each of . . .
Do you need to null check a "params" array?
The C# programming language allows for the creation of methods that take an arbitrary number of arguments via the
params keyword. Although I have used that feature many times, and null-checked the array every time, I have never really stopped to think about whether the array is or is not null,until now. Is it necessary to null-check the
. . .
More with Extension Methods and Implied Generic Arguments
I have previously written an article entitled "C# .NET -- Implied Generics in Extension Methods:
A Really Cool Way to Raise Events". This new article extends upon that to easily create
Tuple objects and
As you may recall from the mentioned article, the C# compiler has a really awesome ability to infer the . . .
There are a variety of reasons one might want to get a resource associated with an
enum element. For example, it might be necessary to find an error message to display to a user or return in a web service call. Or, perhaps you need to find an icon associated with a status, etc. This article shows how to find a string from a resource file . . .