Every day I get many questions where to download the samplecode. Its done within Visualstudio and using the NuGet console.
The pictures shows dialog from Visual Studio 2017
Online codetranslators if you find codesnippets that should be converted.
http://converter.telerik.com/
https://www.carlosag.net/tools/codetranslator/