Skip to content

Instantly share code, notes, and snippets.

@NimaAra
Last active May 4, 2022 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NimaAra/133ea21aebf48f3663e54bba006e3a71 to your computer and use it in GitHub Desktop.
Save NimaAra/133ea21aebf48f3663e54bba006e3a71 to your computer and use it in GitHub Desktop.
Contains various resources relating to C# and .NET

NuGet Versioning

Value vs Reference Types

.NET Core

.NET Core Tools

-- Install
dotnet tool install -g dotnet-counters
dotnet tool install -g dotnet-trace
-- Monitoring
dotnet counters monitor -p <PID> --providers Micrososft.AspNetCore.Hosting System.Runtime
dotnet trace collect -p <PID>
-- Open the resulting trace.nettrace in VS or PerfView
--- Process Dump
Instead of: 
dotnet dump collect -p <PID>
-- Open the dump in VS

Do:
dotnet gcdump collect -p <PID>
-- Open the dump in VS or PerfView

P/Invoke

ASP.NET Core

Threading

GC

Sockets

Data Structures

.NET Dictionary<TKey, TValue>

Strings

String Formatting in C#

Images

.NET Ephemeral Segments

.NET Heaps

.NET Architecture

.NET Core Architecture

.NET Native Architecture

Big O Cheatsheet - 01

Big O Cheatsheet - 02

CPU Operation Costs

CPU Operation Costs Scale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment