What is ViewBag?

ViewBag 101: How It Works, When It’s Used, Code Examples, and More

Stackify Developer Tips, Tricks & Resources

ViewBag is a property – considered a dynamic object – that enables you to share values dynamically between the controller and view within ASP.NET MVC applications. Let’s take a closer look at ViewBag, when it’s used, some limitations, and other possible options to consider. What is ViewBag? The Microsoft Developer Network writes that the ViewBag property allows you to share …

What is C# Reflection?

How C# Reflection Works With Code Examples

Stackify Developer Tips, Tricks & Resources

Reflection is when managed code can read its own metadata to find assemblies. Essentially, it allows code to inspect other code within the same system. To illustrate, Java’s static typing system isn’t designed to support the “doSomething” method unless the object conforms to a known interface. But with reflection, your code can view the object and find out if it …

What are OOP Concepts in C#?

OOP Concepts in C#: Code Examples and How to Create a Class

Stackify Developer Tips, Tricks & Resources

Object oriented programming (OOP) is a programming structure where programs are organized around objects as opposed to action and logic. This is essentially a design philosophy that uses a different set of programming languages such as C#. Understanding OOP concepts can help make decisions about how you should design an application and what language to use. Everything in OOP is placed …

Visual Studio Online/Team Services

What is Visual Studio Team Services? A Look at Its Features, Uses, Tutorials and More

Stackify Developer Tips, Tricks & Resources

At Stackify, we’re big fans of tools that make developers’ lives simpler, and one such tool is Visual Studio Online, which is now known as Visual Studio Team Services (VSTS), an extension of the Visual Studio architecture that covers development teams. It has special tools and roles for software developers, testers, and specialists. These include tools for collaboration, reporting, development, and measurement. …

Learn how to support and show performance

Understanding & Profiling C# Async Await Tasks

Matt Watson Developer Tips, Tricks & Resources, Stackify Product & Company Updates

Microsoft and the .NET community have made asynchronous programming very easy with their implementation of async await in C#. The latest versions of ASP.NET heavily utilize it to improve performance. Many performance monitoring and profiling tools struggle to support and visualize the performance of asynchronous C# code. Stackify’s Prefix & Retrace products both have excellent support for applications using C# async await. …

Unhandled Exceptions

How to Catch All Exceptions in C# & Find All Application Errors

Matt Watson Developer Tips, Tricks & Resources

Exception handling is a critical component of every software application. The last thing you want is your users to see weird errors, or even worse, your application keeps crashing. In this article, we are going to discuss how to find and catch all exceptions in C# applications. .NET provides several different ways to catch exceptions and view unhandled exceptions. Topics …

DotNet Errors and How to Fix Them

Top .NET Software Errors: 50 Common Mistakes and How to Fix Them

Stackify Developer Tips, Tricks & Resources

Developing in .NET provides several powerful benefits, including less overall code, improved security, ease of updates/changes, and language independence. That said, the system isn’t without errors and problems. From common exceptions to coding mistakes to incorrect assumptions, most of these issues come down to programmer error. The list below shares the 50 top .NET software errors from around the web. …

Important Skills for .NET Developers

20 Development Leaders and .NET Pros Reveal the Most Common Skills & Characteristics of Great .NET Developers

Stackify BuildBetter, Developer Career Development, Developer Tips, Tricks & Resources

Microsoft’s .NET Framework is incredibly popular, and its widespread use is one of the reasons C# is gaining ground as one of the most popular and most-used programming languages. What’s more, .NET Core, a modular, open-source (check out the code on GitHub) development stack that’s already used by ASP.NET and .NET Native, is quickly gaining speed, which will heavily influence the …

What's a C# Throw Exception?

How to Throw C# Exceptions Like a Major League Pro: Examples, Best Practices, and Everything You Need to Know

Stackify Developer Tips, Tricks & Resources

Practically everyone who has ever used a web page or an app has encountered an exception at one point or another, but they probably didn’t realize what it was. Exceptions are pretty common ways to handle unexpected inputs but are they always the right way to handle such problems? In this post, we’ll take a closer look at C# exceptions, …

What is RestSharp?

What is RestSharp? An Introduction to RestSharp’s Features and Functionality

Stackify Developer Tips, Tricks & Resources

RestSharp is one of the several ways to create a web service or web request in .NET; we discuss a few other such options in this post. In today’s post, though, we’ll take a look at RestSharp specifically, its features and benefits, and a few examples of RestSharp in action. Definition of RestSharp RestSharp is a comprehensive, open-source HTTP client library …

How to Monitor # of Exceps Thrown / Sec

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

Matt Watson Developer Tips, Tricks & Resources, Popular

Exceptions 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. Is …

C# Exception Handling Best Practices

Matt Watson Developer Tips, Tricks & Resources

Welcome to Stackify’s guide to C# exception handling. In this article we cover the following topics: Basics about C# Exceptions, including examples Common .NET Exceptions How to Create Your Own Custom C# Exception Types How to Find Hidden .NET Exceptions C# Exception Logging Best Practices What is an Exception? Exceptions are a type of error that occurs during the execution …

Dependency Injection C#

What is Dependency Injection C#? How It Works, Types of Dependency Injections in C#, and More

Stackify Developer Tips, Tricks & Resources

In a recent blog post, we talked about how C# and .NET are the next big thing. If you’re planning to code in C#, dependency injection is just one of many things you should know. Read on for a primer on dependency injection in C# so you can use it to your advantage in your next project. Definition of Dependency …