Install the Jdenticon-net NuGet package.
PM> Install-Package Jdenticon-net
Use the Identicon class to create identicons.
using Jdenticon; class Program { static void Main() { Identicon .FromValue("string to hash", size: 100) .SaveAsPng("test.png"); } }