NashTech Insights

Common Misconceptions in C# and .NET;

Posts by categories

Posts by tags

Common Misconceptions in C# and .NET – Overusing Threads Instead of Tasks

In this section, we will explore the world of parallel and asynchronous programming in C#, with a particular focus on the common mistake of overusing threads instead of employing tasks. When comparing tasks and threads, it’s essential to understand that a Task is an abstraction that operates atop the threading model. However, there exist numerous …

Common Misconceptions in C# and .NET – Overusing Threads Instead of Tasks Read More »

Coding on a computer screen

Common Misconceptions in C# and .NET – SQL Injection

In this section, we will address the issue of SQL injections, which is a longstanding that demands utmost caution due to its severe consequences. Let’s examine the problem of SQL injection in detail. Suppose we have a query that retrieves the “city” value from an HTML Form submitted, and we make the decision to directly …

Common Misconceptions in C# and .NET – SQL Injection Read More »

Coding on a computer screen

Common Misconceptions in C# and .NET – Not Properly Hiding Your Secrets

We will explore the proper handling of sensitive information in the .NET development environment. Specifically, we will focus on protecting secrets used during development. These secrets refer to sensitive information used in the development environment. Consider a scenario where two developers are working on a project, each requiring their own dedicated passwords to connect to …

Common Misconceptions in C# and .NET – Not Properly Hiding Your Secrets Read More »

cyber security, internet security, computer security-1914950.jpg

Common Misconceptions in .NET – Misusing Cookies

In this section, we will address the issue of misusing cookies, focusing on cross-site request forgery. Let’s consider a scenario where a user interacts with a browser and intends to visit a bank’s website, the user sends a login request and receives a cookie from the bank as a result. This cookie allows the user …

Common Misconceptions in .NET – Misusing Cookies Read More »