Dinesh Kudale

Dinesh Kudale

  • 1.2k
  • 127
  • 16.8k

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

Jan 12 2018 11:36 PM

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)