예제 #1
0
 internal static void SetNotificationEmails(Item item, object value)
 {
     if (value != null)
     {
         EmailAddressCollection toRecipients = ((EmailMessage)item).ToRecipients;
         IEnumerable <string>   source       = (IEnumerable <string>)value;
         toRecipients.Clear();
         toRecipients.AddRange((from x in source
                                select new EmailAddress(x)).ToArray <EmailAddress>());
     }
 }