NashTech Insights

C#

Posts by categories

Posts by tags

binary, binary system, binary code-8177888.jpg

Common Misconceptions in C# and .NET – Not Understanding Thread Safety.

We will explore the critical topic of thread safety, a concept that demands careful consideration. In the .NET realm, it’s important to note that all instance methods are generally assumed to lack thread safety, while conversely, static methods are presumed to be thread-safe unless explicitly documented otherwise. Let’s delve into an illustrative case where the …

Common Misconceptions in C# and .NET – Not Understanding Thread Safety. Read More »

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 »

Azure Event Hubs: Powering Your Big Data Streaming

In the ever-evolving landscape of data processing and analytics, Azure Event Hubs stands out as a modern and robust big data streaming platform and event ingestion service. This article delves into the core features and benefits of Azure Event Hubs, showcasing how it seamlessly integrates with other Azure and Microsoft services to provide a comprehensive …

Azure Event Hubs: Powering Your Big Data Streaming Read More »

Sidecar Design Pattern – Fundamental and Code sample

What The sidecar pattern is a structural pattern that is used to separate concerns in a microservices architecture. The sidecar pattern enables offloading the processing of some kind to a separate module that gets deployed along with the main service component. The sidecar pattern is sometimes referred to as a decomposition pattern. Why Fundamentally, in …

Sidecar Design Pattern – Fundamental and Code sample Read More »

Coding on a computer screen

Common Misconceptions in C# and .NET – Relying On Client Validation

Relying solely on client-side validation should be strictly avoided. It is not a reliable approach as skilled users can easily manipulate the client-side code to bypass the validation rules. Let’s examine example to illustrate this point. In our scenario, we have an ASP.net Razor-page application with login form. The form utilizes bind property attributes in …

Common Misconceptions in C# and .NET – Relying On Client Validation 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 »

monitor, binary, binary system-1307227.jpg

Common Misconceptions in C# and .NET: Understanding the Virtual and Override techniques in C#

Let us properly comprehend the concepts of polymorphism, C# virtual, and override techniques. In this example, we have an abstract class called Car, which includes a protected property named Speed. It also contains an abstract method called Accelerate, which increases the speed by ten whenever invoked. Additionally, there is a non-virtual implemented method called Stop, …

Common Misconceptions in C# and .NET: Understanding the Virtual and Override techniques in C# Read More »