A look at how constants work in the .NET Framework

Photo by Felix on Unsplash

What is const?

Referencing a const from a library

The projects


Some questions and answers about HSTS and preload

Photo by Alessandro Sacchi on Unsplash

What is HSTS?


A look at the memory consumption of each in .NET 5.0

Photo by Benjamin Voros on Unsplash

Results


A comparison of the number of iterations in .NET 5 and .NET Framework

Photo by Matteo Catanese on Unsplash

Hypothesis

  1. The source is iterated just once, so three iterations/loops for a source with three items.
  2. Nine iterations (each extension method iterates the collection).

What is an iteration?

Behind the foreach syntactic sugar


A deep dive into the inner workings of Antiforgery tokens in .NET 5.0

Photo by Aaron Burden on Unsplash

The First 26 Characters


A look into whether or not antiforgery tokens can be stolen

Photo by NASA on Unsplash

Antiforgery Tokens

Login CSRF attack


How antiforgery tokens work in .NET 5.0

Photo by Tom Winckels on Unsplash
  1. How does the cookie name get generated?
  2. How do the cookie and HTML form tokens get generated?
  3. How are the tokens verified?

Following along


What is the ideal body type for a Ninja?


Get an understanding of what happens under the hood

Photo by mecdjino on Unsplash

Why?

How?


Use .NET Reflection to increase code readability, maintainability, and extensibility

Photo by Elena Mozhvilo on Unsplash

The Scenario

Current State Of The Code

David Klempfner

I’m a software developer who is passionate about learning how things work behind the scenes.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store