Question: what is the difference between properties and methods in c#?
Answer: The difference between property and method is that -- property is a value stored in the hash key, whereas method is a function stored in hash key. In this code sample. name is the property of object person, it stored String "John Doe", you can access it via dot notation person.name .