How can i convert this to C#

Sry My First Use to C# and iam woundering how to convert this to C#

for(var contact : ContactPoint  in collision.contacts){
if(Vector3.Angle(contact.normal , Vector3.up) < MaxSlop){
Grounded = true;
}
}

Here’s some links I found useful in converting between C# / JS : http://answers.unity3d.com/questions/12911/what-are-the-syntax-differences-in-c-and-javascrip.html

http://www.unifycommunity.com/wiki/index.php?title=Which_Kind_Of_Array_Or_Collection_Should_I_Use?

this is your for condition as a C# foreach condition : foreach(ContactPoint contact in collision.contacts){

foreach(var contact in collision.contacts)
{
if(Vector3.Angle(contact.normal , Vector3.up) < MaxSlop)
{
Grounded = true;
}
}