private void CopyContentFrom(InvoiceUserCollection sourceObject)
 {
     CollectionContent = sourceObject.CollectionContent;
             _unmodified_CollectionContent = sourceObject._unmodified_CollectionContent;
 }
partial         static void CreateCustomDemo(ref InvoiceUserCollection customDemoObject);
 public static InvoiceUserCollection CreateDefault()
 {
     var result = new InvoiceUserCollection();
             return result;
 }
 public static InvoiceUserCollection CreateDemoDefault()
 {
     InvoiceUserCollection customDemo = null;
             InvoiceUserCollection.CreateCustomDemo(ref customDemo);
             if(customDemo != null)
                 return customDemo;
             var result = new InvoiceUserCollection();
             result.CollectionContent.Add(InvoiceUser.CreateDemoDefault());
             //result.CollectionContent.Add(InvoiceUser.CreateDemoDefault());
             //result.CollectionContent.Add(InvoiceUser.CreateDemoDefault());
             return result;
 }
        void IInformationObject.SetInstanceTreeValuesAsUnmodified()
        {
            _unmodified_InvoiceName = InvoiceName;
                    _unmodified_InvoiceID = InvoiceID;
                    _unmodified_InvoicedAmount = InvoicedAmount;
                    _unmodified_CreateDate = CreateDate;
                    _unmodified_DueDate = DueDate;
                    _unmodified_PaidAmount = PaidAmount;
                    _unmodified_FeesAndInterestAmount = FeesAndInterestAmount;
                    _unmodified_UnpaidAmount = UnpaidAmount;

                    _unmodified_ReferenceToInformation = ReferenceToInformation;
                    if(ReferenceToInformation != null)
                        ((IInformationObject) ReferenceToInformation).SetInstanceTreeValuesAsUnmodified();

                    _unmodified_InvoiceDetails = InvoiceDetails;
                    if(InvoiceDetails != null)
                        ((IInformationObject) InvoiceDetails).SetInstanceTreeValuesAsUnmodified();

                    _unmodified_InvoiceUsers = InvoiceUsers;
                    if(InvoiceUsers != null)
                        ((IInformationObject) InvoiceUsers).SetInstanceTreeValuesAsUnmodified();
        }