コード例 #1
0
 private static bool ShouldSend(NotificationSetting notificationSetting, NotificationEvent notificationEvent)
 {
     return((bool)notificationSetting.GetType()
            .GetProperty(notificationEvent.ToString())
            .GetValue(notificationSetting));
 }