Zdravim ... Mam tu problem udelal jsem si takovej lehci algorytmus a kdyz ho chci zapisovat do souboru tak mi to hodi tudle chybu
Cannot assign to 'Write' because it is a 'method group'
dela to u BinarWrite.Write = x a y
public static void MapBlock()
{
int Xblock = 8;
int Yblock = 8;
FileStream fs = File.Create("testfile.TxT");
BinaryWriter BinarWrite = new BinaryWriter(fs);
for(int x = 0;x < Xblock; x++)
{
for(int y = 0;y < Yblock; y++)
{
BinarWrite.Write = y;
}
BinarWrite.Write = x;
}
}