// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) public class P { private int a; private string b; public int A { get { return a; } set { a = value; } } public string B { get { return b; } set { b = value; } } }