コード例 #1
0
 public bool IsMarriedTo(IFamilyMember member)
 {
     return(Partnerships.Exists(x => x.OtherPartner(this) == member && x.IsDivorced == false));
 }
コード例 #2
0
 public bool IsDivorcedFrom(IFamilyMember member)
 {
     return(Partnerships.Exists(x => x.OtherPartner(this) == member && x.IsDivorced == true));
 }
コード例 #3
0
 public bool HasChildren()
 {
     return(Partnerships.Exists(x => x.HasChildren()) || NonPartnership.Children.Count > 0);
 }