Codes during learning c#