Question: Can anyone please tell me the reason that why we can't use **Console.WriteLine** in Class without Method. I am trying to do this but complier is putting a error. I know its wrong but just want to know the valid reason for that .

```
 public  class AssemblyOneClass2
    {
       Console.WriteLine("");
    }

```

Answer: 
The issue is not using `WriteLine`. You can't put **any** code there other than declaring member variables (and properties events etc) or functions. Code like calls to `WriteLine` belongs in the body of those functions. As for the reason, when would you expect that code to run? I expect you can't answer that and neither can the compiler.
```
    public class AssemblyOneClass2
    {
        static void Main(string[] args)
        {
            Console.WriteLine("");
        }
    }

```

You need an actual method for anything to happen. The above snippet shows the correct way to run `"Console.Writeline("");"`