Dinesh Kudale

Dinesh Kudale

  • 1.6k
  • 127
  • 17.5k

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)