Systems | Development | Analytics | API | Testing

Log4net for .NET Logging: The Only Tutorial and 14 Tips You Need to Know

If you’ve been writing code for any reasonable amount of time, then it’s virtually impossible that you haven’t handled logging in any way, since it’s one of the most essential parts of modern, “real life” app development. If you’re a.NET developer, then you’ve probably used some of the many famous logging frameworks available for use on this platform. Today’s post will cover one of these frameworks: log4net.

10 ASP.NET Performance Tuning and Optimization Tips

Web development is a vibrant field where innovation and technology converge to shape the digital landscape of tomorrow. In the field of creating websites and apps, ASP.NET stands as a versatile framework, offering robust tools and features to optimize website performance and enhance user experiences. Despite ASP.NET's versatility, its performance may occasionally lag suffer due to diverse strategies that can notably affect load times, user interaction, and overall site responsiveness.

C# Delegates: Definition, Types & Examples

The C# delegate is an essential “construct” in the C# programming language. Delegates are essential for event handling, LINQ queries, asynchronous programming and more. And you can, of course, make use of delegates to make your code simpler and more concise. This post offers you a guide to this incredibly useful tool in C#. By the end of the post, you’ll have learned: Let’s get started.

C# Regex: How Regular Expressions Work in C#, With Examples

Text manipulation is one of the most common tasks in programming with virtually all major programming languages usually supporting regex (regular expression) via their standard libraries. C# is no exception, so today we bring you a C# regex guide. You’ll learn what regexes are, why you’d want to use them and how to get started in a comprehensive, approachable manner. That way, you can start using regular expressions to solve real problems ASAP.

Solving 'Object Reference Not Set' Error

“Object Reference Not Set to an instance of an object.” Cast the first stone for those who never struggled with this error message as a beginner C# / .NET programmer. This infamous and dreaded error message happens when you get a NullReferenceException. This exception throws when you attempt to access a member. For instance, a method or a property on a variable that currently holds a null reference. But what does null reference exactly mean? What exactly are references?

The LINQ Join Operator: A Complete Tutorial

I think most C# developers would agree that LINQ is an integral part of the experience of writing code with the language. LINQ provides a fluent, intuitive, and consistent way to query data sets. In this post, we’ll help in your LINQ-mastering quest by covering the LINQ join operator. We’ll start the post with a definition of LINQ itself, so we’re all on the same page. After that, you’ll see an explanation of join operations in LINQ.

23 Useful .Net Libraries for Your Next Project

Not every development framework is capable of creating a modern application. One of the reasons why.NET is considered one of the best frameworks is because it offers a variety of libraries that can help developers create these modern apps. Its features are also updated using low code and the deployment of high-scalable and accomplished apps.

How C# Reflection Works With Code Examples

To write code that can read, examine and even write code in runtime. Sounds like magic? Welcome to the world of C# reflection. Being able to write code that can examine and modify other pieces of code dynamically is quite a useful power. That’s what we call reflection, and in this post, you’ll learn how C# reflection works. We’ll open the post by covering some fundamentals. What is reflection in C#? Why do people use it? We’ll break all that down for you in plain English.

How to Use LoggerFactory and Microsoft.Extensions.Logging for .NET Core Logging With C#

Do you use.NET (formerly.NET Core)? If so, you’re probably familiar with the built-in.NET Core LoggerFactory which is in Microsoft.Extensions.Logging. Back when it was introduced, it created a lot of confusion around logging with ASP.NET Core. Several years latter, the dust has settled down, and.NET logging has become somewhat “boring”, which means predictable and consistent. In this post, we’ll offer you a guide on.NET logging.