public CMemberKeys(string name = GlobalDefines.DEFAULT_XML_STRING_VAL, string surname = GlobalDefines.DEFAULT_XML_STRING_VAL, CMemberAndPart MemberAndPart = null) { Name = name; Surname = surname; if (MemberAndPart != null) { Member = MemberAndPart.Member; Participation = MemberAndPart.Participation; } }
public override void RefreshFrom(ICanRefreshFrom rhs, bool SkipNullsForObjects, bool SkipNullsForNullables) { base.RefreshFrom(rhs, SkipNullsForObjects, SkipNullsForNullables); CMemberAndPart rhsMemberAndPart = rhs as CMemberAndPart; if (rhsMemberAndPart == null) { return; } if (!SkipNullsForObjects || rhsMemberAndPart.Member != null) { Member = rhsMemberAndPart.Member; } if (!SkipNullsForObjects || rhsMemberAndPart.Participation != null) { Participation = rhsMemberAndPart.Participation; } }