Hey, I actually made a port of this for C#, check it out!
https://github.com/jdamacena/CSharp-Platformer-Controller-2D