Try .NET
Runnable .NET code on your site
This page doesn't work on Internet Explorer. We recommend you try the new Microsoft Edge browser.
Light up your developer documentation with code your customers can run and edit in the browser.
Enable your customers to learn about your product's features and APIs in the browser.
Allow your visitors to experiment and test code in the browser.
var names = new[]
{
"Ana",
"Felipe",
"Emillia"
};
foreach (var name in names)
{
Console.WriteLine($"Hello {name}");
}
Console
var names = new[] { "Ana", "Felipe", "Emillia" }; foreach (var name in names) { Console.WriteLine($"Hello {name}"); }
Try .NET is an embeddable code runner that enables you to explore .NET in the browser. Use Try .NET to light up your online learning experiences and documentation.
<h2>Fibonacci Generator</h2>
<p>Here is my example of a Fibonacci generator implemented in C#.</p>
<iframe src="https://try.dot.net/?fromGist=df44833326fcc575e8169fccb9d41fc7">
</iframe>
Go beyond copy and paste samples to live snippets. Our private preview customers can embed live .NET code into blogs and documentation.
Try .NET integrates with the dev tools you already use. Embed and run your GitHub Gists right in your browser, powered by the Try .NET experience.
Join us on GitHub to contribute ideas, report bugs, and help make Try .NET amazing.
Build the user experience you want, with features to integrate Try .NET seamlessly into your site.
Members of our private preview are building online .NET experiences.