I've got this code writted on VB.NET and I want to transform it to C#
I really dont know how to convert the MOD funciont without any error using %...
For f = 0 To 7
For c = 0 To 7
If (((c Mod 2) <> 0 AndAlso (f Mod 2) = 0) OrElse ((c Mod 2) = 0 AndAlso (f Mod 2) <> 0)) AndAlso f < 3 Then
Dim fi As New BE.Ficha
fi.Color = 1
fi.Fila = f
fi.Columna = c
fi.Dama = False
tab.Fichas.Add(fi)
ElseIf (((c Mod 2) = 0 AndAlso (f Mod 2) <> 0) OrElse ((c Mod 2) <> 0 AndAlso (f Mod 2) = 0)) AndAlso f > 4
Dim fi As New BE.Ficha
fi.Color = -1
fi.Fila = f
fi.Columna = c
fi.Dama = False
tab.Fichas.Add(fi)
End If
Next
Next