/// <summary>
 /// Construct a EmailAndAddr case
 /// </summary>
 public static ContactInfo EmailAndAddr(EmailContactInfo value1, PostalContactInfo value2)
 {
     return(new ContactInfo {
         _value = new EmailAndAddrCase(value1, value2)
     });
 }
 public EmailAndAddrCase(EmailContactInfo value1, PostalContactInfo value2)
 {
     this.Value1 = value1; this.Value2 = value2;
 }
 /// <summary>
 /// Construct an EmailOnlyCase case
 /// </summary>
 public static ContactInfo EmailOnly(EmailContactInfo value)
 {
     return(new ContactInfo {
         _value = new EmailOnlyCase(value)
     });
 }
 public EmailOnlyCase(EmailContactInfo value)
 {
     this.Value = value;
 }