using System; namespace DemoMembers { public class Product { // Declare a variable to hold the description. private string mDescription; // Property to get and set the description. public string Description { get { return mDescription; } set { mDescription = value; } } } static class SimpleScalarPropertiesDemo { public static void DoDemo() { Console.WriteLine("\nSimpleScalarPropertiesDemo"); Console.WriteLine("------------------------------------------------------"); // Create a Product object Product aProduct = new Product(); // Use the 'set' property procedure. aProduct.Description = "Chef Anton's Gumbo Mix"; // Use the 'get' property procedure. Console.WriteLine("{0}", aProduct.Description); } } }