Hi, I am Nima
  • Home
  • Author

.NET

A collection of 14 posts

Tranquillity in C# with EasyDictionary
C#

Tranquillity in C# with EasyDictionary

Dictionary is probably among the most used collections in C#...

  • Nima Ara
    Nima Ara
3 min read
Generating IDs in C#, 'safely' and efficiently
C#

Generating IDs in C#, 'safely' and efficiently

Recently I needed to find an efficient algorithm for generating unique IDs in a highly concurrent and low latency component.

  • Nima Ara
    Nima Ara
14 min read
Counting Lines of a Text File in C#, the Smart Way
C#

Counting Lines of a Text File in C#, the Smart Way

Counting the lines of a text file may not seem very exciting but recently I had to deal with a number of large files...

  • Nima Ara
    Nima Ara
9 min read
Stuff Every .NET App Should be Logging at Startup
C#

Stuff Every .NET App Should be Logging at Startup

Unless all you build are HelloWorld applications which never get deployed anywhere you almost certainly have come across cases where either you or your support team have had to figure out...

  • Nima Ara
    Nima Ara
10 min read
Practical Parallelization in C# with MapReduce, ProducerConsumer and ActorModel
C#

Practical Parallelization in C# with MapReduce, ProducerConsumer and ActorModel

The barrier of entry into multi-threading in .NET is relatively low as both Parallel Computing (making programs run faster) and Concurrent Programming (making programs more responsive) have been greatly simplified since the introduction of TPL and and its friends...

  • Nima Ara
    Nima Ara
24 min read
Local Functions, a C# 7 Feature
C#

Local Functions, a C# 7 Feature

C# 7 has introduced a number of features; In this article we are going to take a look at Local Functions and why you may want to use them...

  • Nima Ara
    Nima Ara
2 min read
Beware of the .NET HttpClient
C#

Beware of the .NET HttpClient

In the old days of .NET (pre 4.5) sending a HTTP request to a server could be accomplished by either using the WebClient or at a much lower level via the HttpWebRequest...

  • Nima Ara
    Nima Ara
6 min read
High Resolution Clock in .NET
C#

High Resolution Clock in .NET

Obtaining high resolution time requires a clock which is both precise as well as accurate and those are different things...

  • Nima Ara
    Nima Ara
5 min read
C#

How to obtain the framework version of a .NET assembly

If you have ever wondered what version of the .NET framework a given assembly has been built against this post may be of some help.

  • Nima Ara
    Nima Ara
1 min read
C#

Beware of the IDictionary<TKey, TValue>

In my quest to reduce latency and CPU consumption of our components, I came across a very interesting and probably not so well known performance gotcha!

  • Nima Ara
    Nima Ara
4 min read
Cleaner Pub-Sub using the Event Aggregator Pattern
C#

Cleaner Pub-Sub using the Event Aggregator Pattern

If you have been working with .NET events then you should be familiar with the following pattern...

  • Nima Ara
    Nima Ara
4 min read
.NET

.NET Core 5, Entity Framework 7, ASP.NET 5 (vNext) & MVC 6 are all Dead!

That's it, it is official. Today in their weekly community stand-up the ASP.NET team announced what many .NET developers had been waiting to hear ever since ASP.NET vNext was announced back

  • Nima Ara
    Nima Ara
2 min read
Per Object Garbage Collection Notification in .NET
C#

Per Object Garbage Collection Notification in .NET

Ever since .NET 3.5 we have been able to get notifications when a Garbage Collection is pending, this can be achieved by using...

  • Nima Ara
    Nima Ara
2 min read
High Performance Logging using log4net
C#

High Performance Logging using log4net

When it comes to logging in .NET all you generally need to do is choose between log4net or NLog and start logging...

  • Nima Ara
    Nima Ara
8 min read
Hi, I am Nima © 2022
Latest Posts