Пример #1
0
 protected void ToString(List <string> toStringOutput)
 {
     toStringOutput.Add($"CreationSource = {(CreationSource == null ? "null" : CreationSource.ToString())}");
     toStringOutput.Add($"CreatedAt = {(CreatedAt == null ? "null" : CreatedAt.ToString())}");
     toStringOutput.Add($"UpdatedAt = {(UpdatedAt == null ? "null" : UpdatedAt.ToString())}");
     toStringOutput.Add($"EmailAddress = {(EmailAddress == null ? "null" : EmailAddress.ToString())}");
     toStringOutput.Add($"PhoneNumber = {(PhoneNumber == null ? "null" : PhoneNumber.ToString())}");
     toStringOutput.Add($"ReferenceId = {(ReferenceId == null ? "null" : ReferenceId.ToString())}");
     toStringOutput.Add($"GroupIds = {(GroupIds == null ? "null" : GroupIds.ToString())}");
 }
Пример #2
0
 protected void ToString(List <string> toStringOutput)
 {
     toStringOutput.Add($"Id = {(Id == null ? "null" : Id == string.Empty ? "" : Id)}");
     toStringOutput.Add($"CreatedAt = {(CreatedAt == null ? "null" : CreatedAt == string.Empty ? "" : CreatedAt)}");
     toStringOutput.Add($"UpdatedAt = {(UpdatedAt == null ? "null" : UpdatedAt == string.Empty ? "" : UpdatedAt)}");
     toStringOutput.Add($"Cards = {(Cards == null ? "null" : $"[{ string.Join(", ", Cards)} ]")}");
     toStringOutput.Add($"GivenName = {(GivenName == null ? "null" : GivenName == string.Empty ? "" : GivenName)}");
     toStringOutput.Add($"FamilyName = {(FamilyName == null ? "null" : FamilyName == string.Empty ? "" : FamilyName)}");
     toStringOutput.Add($"Nickname = {(Nickname == null ? "null" : Nickname == string.Empty ? "" : Nickname)}");
     toStringOutput.Add($"CompanyName = {(CompanyName == null ? "null" : CompanyName == string.Empty ? "" : CompanyName)}");
     toStringOutput.Add($"EmailAddress = {(EmailAddress == null ? "null" : EmailAddress == string.Empty ? "" : EmailAddress)}");
     toStringOutput.Add($"Address = {(Address == null ? "null" : Address.ToString())}");
     toStringOutput.Add($"PhoneNumber = {(PhoneNumber == null ? "null" : PhoneNumber == string.Empty ? "" : PhoneNumber)}");
     toStringOutput.Add($"Birthday = {(Birthday == null ? "null" : Birthday == string.Empty ? "" : Birthday)}");
     toStringOutput.Add($"ReferenceId = {(ReferenceId == null ? "null" : ReferenceId == string.Empty ? "" : ReferenceId)}");
     toStringOutput.Add($"Note = {(Note == null ? "null" : Note == string.Empty ? "" : Note)}");
     toStringOutput.Add($"Preferences = {(Preferences == null ? "null" : Preferences.ToString())}");
     toStringOutput.Add($"Groups = {(Groups == null ? "null" : $"[{ string.Join(", ", Groups)} ]")}");
     toStringOutput.Add($"CreationSource = {(CreationSource == null ? "null" : CreationSource.ToString())}");
     toStringOutput.Add($"GroupIds = {(GroupIds == null ? "null" : $"[{ string.Join(", ", GroupIds)} ]")}");
     toStringOutput.Add($"SegmentIds = {(SegmentIds == null ? "null" : $"[{ string.Join(", ", SegmentIds)} ]")}");
 }