C# Implicit Using in C# Learn everything you need to know about implicit usings in C#. This guide covers how implicit usings work, how to manage them, and the benefits of using them to write cleaner, more efficient code in C# 10 and .NET 6
https Generating a Self-Signed Certificate using Powershell A self-signed certificate it's very easy to create and helps on with local development and testing. With a Single Line of PowerShell code we create a certificate. First, open the PowerShell as Administrator and run the following command: New-SelfSignedCertificate ` –DnsName <DNS-Name> ` -CertStoreLocation "cert:\LocalMachine\My&
C# Featured Compress files in memory (.zip) using C# Here is a code snippet of how to compress one or many files to a zip archive in memory using C#. It works in .Net Core and .Net Full Framework public static byte[] GetZipArchive(params InMemoryFile[] files) { byte[] archiveFile; using (var archiveStream = new MemoryStream()) { using (var archive = new ZipArchive(archiveStream,
C# Getting the file name without extension in C# - #TIP These days I was asking myself how to get the file name without the extension. I confess I was tempted to use a regex to solve this problem :) But no worries. There is a method in System.IO.Path specific for this situation. using System.IO; /// /// Get file name without
tip Libraries.io - A Library of frameworks #tip Theses days I was trying to find the latest version of some framework I was using. Searching on web I finally found this website https://libraries.io/. This nice and complete website has informations about almost every library/framework you know. Take a look, share https://libraries.io/