Is it posiible to make for loop with the same functionality, but with C#?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Dayls

I just need to implement the same destroying of objects of the same group, but in C#. And I don’t know how to make similar for loop like in this answer

:bust_in_silhouette: Reply From: Yaann
    Godot.Collections.Array enemies;
	enemies = GetTree().GetNodesInGroup("enemy");
	foreach (Node enemy in enemies)
	{
		enemy.QueueFree();
	}

Also in case you find any other GDScript that you want to convert in C#, this code translator by HaSa1002 is a great tool to convert a GDScript code to C#!