by Bilal Amjad | Sep 22, 2019 | .NET, ASP.NET, ASP.NET, C#
In this article, i will be discussing about the performance of ForEach Vs For Loop.So Let’s get started. I have data that provides me with 100 posts. And Now i will apply both loops on this data one by one.Let’s First Use ForEach Loop. ForEach Loop :...
by bilalamjad | Jun 28, 2019 | .NET, Blockchain, C#
Learn How to compute SHA256 Hash in C#. Hashing (also known as hash functions) in cryptography is a process of mapping a binary string of an arbitrary length to a small binary string of a fixed length, known as a hash value, a hash code, or a hash. Hash functions are...
by bilalamjad | Mar 24, 2019 | .NET, C#, Microsoft
Let’s take a look at the most likely new C# 8 features: Nullable Reference Types The name of this particular feature might confuse a lot of developers wondering “Isn’t nullable reference a bad idea?” or “Shouldn’t it be called non nullable reference types?”. Sir Tony...
by bilalamjad | Feb 16, 2019 | .NET, C#, exception handling
The .NET Framework provides a way to subscribe to an event to get a callback anytime an Exception occurs. You could use this to capture all of the exceptions. I would suggest potentially subscribing to them and just outputting them to your Debug window. This would...
by bilalamjad | Feb 16, 2019 | .NET, C#, exception handling
What Are First Chance Exceptions? It is normal for a lot of exceptions to be thrown, caught, and then ignored. The internals of the .NET Framework even throws some exceptions that are discarded. One of the features of C# is something called first chance exceptions. It...
by bilalamjad | Feb 13, 2019 | .NET, ASP.NET, C#, exception handling
Customization and Localization is the most important thing every pro developer does. This article will help understanding the use of custom exceptions in C# to provide better user and developer experience during development and after development. C# exceptions are...
Recent Comments