public override object GetProperty(string name) { switch (name) { case "A": return A; case "B": return B; default: return base.GetProperty(name); } }