How can i make this in c#?