public static void Handle(this PropertyRule rule, SqlDataReader reader, object obj) { object t = rule.ReadFromReader(reader); t = rule.CastToCorrectType(t); rule.SetPropertyValue(obj, t); }