Blog

Developer Tips, Tricks, Resources

Learn More >>


Developer Career Development

Learn More >>


Insights for Dev Managers

Learn More >>


Stackify News & Product Updates

Learn More >>

What is NullReferenceException? Object reference not set to an instance of an object

April 17, 2017Null reference errors are responsible for a good percentage of all application bugs. They are usually very simple problems caused by not adding additional logic to ensure that objects have valid values before using them. The following code will throw a NullReferenceException if the variable “text” being passed in is null. You can’t call ToUpper() on a null string..

Understanding # of Exceps Thrown / Sec, and How to Find Exceptions

April 17, 2017Exceptions can cause big performance problems. One of the most important performance metrics to track about your application is “# of Exceps Thrown / Sec“. It is available via Windows Performance Counters under the category .NET CLR Exceptions. In this article we will talk about exceptions, how to monitor your exception rate and find the actual exceptions being thrown..

How to Generate C# Random Numbers, Pseudo vs Secure Random Numbers

April 16, 2017Random numbers are used in a wide variety of software applications. Depending on what you are using random numbers for, you will need to decide which type to use. For a music jukebox, the accuracy is not very critical. For something like a lottery or slot machine, the random number generator must be extremely accurate. There are two types.

How to Convert C# String to Int

April 16, 2017The .NET Framework provides a couple built in ways to convert a C# string to int, or several other numeric datatypes. It is important that you do so in a way that does not throw potential exceptions. Unsafe Ways to Convert a C# String to Int You can use a couple built in methods, as shown below, to convert.