Back
Close

C# template

Rnz
2,711 views

Welcome!

This C# template lets you get started quickly with a simple working example using .Net Core. If it is your first contribution then you should have a look at the Getting Started document.

The source code is on GitHub, please feel free to come up with proposals to improve it.

Hands-on Demo

Luke, how many stars are there in these galaxies?
// {...}
public static int CountAllStars(params int[] galaxies){
int totalStars = 0;
foreach(int stars in galaxies) {
totalStars = stars; // fix me!
}
return totalStars;
}
//{...}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Check out the markdown file welcome.md to see how this exercise is injected into the template.

Template Resources

markdowns/welcome.md What you are reading here is generated by this file. Tech.io uses the Markdown syntax to render text, media and to inject programming exercises.

csharp-project A .Net Core MSTest project dedicated to run the programming exercise above. A project relies on a Docker image to run. You can find images on the Docker Hub or you can even build your own.

techio.yml This mandatory file describes both the table of content and the programming project(s). The file path should not be changed.

Visual and Interactive Content

Tech.io provides all the tools to embed visual and interactive content like a Web app or a Unix terminal within your contribution. Please refer to the documentation to learn more about the viewer integrations.

Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants