How to encrypt and decrypt in .NET using CryptoNet 08-02-202220-12-2021 by Maytham Fahmi Few years back I wrote an encryption and decryption code for protecting sensitive person data for fin-tech business. Since that time, I wished I could have time to putted all together in a library that can befit the community. I succussed upon Christmas 2021 holiday time to brush it up and re-write it and make…. ShareTweetSharePin
TryGetNonEnumeratedCount: New LINQ extensions series 08-02-202219-12-2021 by Maytham Fahmi TryGetNonEnumeratedCount is part of .NET 6. Since .NET 6 is released recently, it is a good opportunity to mention some of the new LINQ extensions methods. I will post a series of small articles focused on some these new or maybe less known LINQ methods. In this article I am going to take TryGetNonEnumeratedCount LINQ…. ShareTweetSharePin
Zip: New LINQ extensions series 08-02-202208-12-2021 by Maytham Fahmi Zip is part of .NET 3.1. Since .NET 6 is released recently, it is a good opportunity to mention some of the new LINQ extensions methods. I will post a series of small articles focused on some these new or maybe less known LINQ methods. In this article I am going to take Zip LINQ…. ShareTweetSharePin
Chunk: New LINQ extensions series 08-02-202205-12-2021 by Maytham Fahmi .NET 6 is released recently, it is a good opportunity to mention some of the new LINQ extensions methods. I will post a series of small articles focused on some these new or maybe less known LINQ methods. In this article I am going to take Chunk LINQ method with some examples so it is…. ShareTweetSharePin
How to mock authorize attribute for testing in asp.net core 3.1 08-02-202205-06-2020 by Maytham Fahmi Why not making it possible to by pass Authorization in development stage in general, so both integration testing and developer can do the development with less frustration? ShareTweetSharePin
How to .NET Core 3.0 Wpf application use Dependency Injection 08-02-202219-10-2019 by Maytham Fahmi I have recently come across this requirement to a project I am working on that requires Dependency Injection. For this we need to install/add nuget package to our Wpf project: In my case I created a class that I want to use for logging called it LogBase, so in my App.xaml.cs class add following, this…. ShareTweetSharePin
How to Create Thumbnail with ImageMagick in .net 08-02-202216-09-2019 by Maytham Fahmi For web and desktop application it is often required to auto generate thumbnails of single image or multiple image. It is possible to write a code to scale/resize image, but with few lines of code you can use ImageMagick library to make this happen. Create Visual Studio 2017/2019 project, get ImageMagick nuget pakcage. ImageMagick has…. ShareTweetSharePin
Merge Multiple PDF files to One PDF file in C# 08-02-202226-08-2019 by Maytham Fahmi Merging pdf in C# is not straight forward task with out using 3rd party library. I have seen and used many library and nuget packages that are free but has limitation or free only for private use. Now what to do if you are a little business and want to use a library with out…. ShareTweetSharePin