private static bool ShouldSend(NotificationSetting notificationSetting, NotificationEvent notificationEvent) { return((bool)notificationSetting.GetType() .GetProperty(notificationEvent.ToString()) .GetValue(notificationSetting)); }
private static bool ShouldSend(NotificationSetting notificationSetting, NotificationEvent notificationEvent) { return((bool)notificationSetting.GetType() .GetProperty(notificationEvent.ToString()) .GetValue(notificationSetting)); }