3
Answers

Error: Invalid token '=' in class, struct, or interface memb

Dinesh Kudale

Dinesh Kudale

6y
136
1

Why above error is coming after the compilation of this code. Thanks in advance.

-----------------------------------------------------------------------------------------------------

using System;
class ReadonlyDemo
{
readonly bool flag;
flag=true;
static void Main()
{
}
}

Answers (3)