コード例 #1
0
 public static FormFieldAuthor WithValue(this FormFieldAuthor formField, string email)
 {
     formField.Value = !string.IsNullOrEmpty(email) ? new Person(email) : null;
     return(formField);
 }
コード例 #2
0
 public static FormFieldAuthor WithValue(this FormFieldAuthor formField, Person person)
 {
     formField.Value = person;
     return(formField);
 }
コード例 #3
0
 public static FormFieldAuthor WithValue(this FormFieldAuthor formField, int?personId)
 {
     formField.Value = personId.HasValue ? new Person(personId.Value) : null;
     return(formField);
 }