public object GetPropValue(string propName) { switch (propName) { case "EnumProp": return EnumProp; case "DateProp": return DateProp; case "IntProp": return IntProp; case "StrProp": return StrProp; } return null; } }