So C# is an object oriented (OO) programming language. I'm assuming you're used to OO languages and might not have worked with procedural or functional programming languages. So I will try to explain everything from an OO point of view.
As you well know in an Object Oriented programming language you have objects. Take the following example:
public class Window
{
private bool open;