Skip to content

Instantly share code, notes, and snippets.

View VAllens's full-sized avatar
🎯
Focusing

Allen VAllens

🎯
Focusing
View GitHub Profile
@VAllens
VAllens / Three-ways-get-installed-.NET-Runtimes.md
Last active June 13, 2024 01:12
Three ways to get a list of installed .NET runtimes on your local computer/server
  1. Using terminal command
dotnet --list-runtimes
  1. Using C#/CSharp code
namespace AllenCai;
/// <summary>
/// This is an imitation of the Microsoft.VisualBasic.CompilerServices.LikeOperator.LikeString method,
/// implementing matching that supports * and ? wildcards and support ignores case rules.<br />
/// The purpose of this implementation is to reduce memory allocation and improve performance.
/// </summary>
public static class ZeroMemAllocLikeOperator
{
/// <summary>