public virtual void VisitCollection(Collection collection)
 {
 }
 /// <summary>
 /// Visits the collection.
 /// </summary>
 /// <param name="collection">The collection to visit.</param>
 public override void VisitCollection(Collection collection)
 {
     if (collection.Id != null)
     {
         this.dictionary.Add(collection.Id, collection);
     }
     base.VisitCollection(collection);
 }
예제 #3
0
 /**
  * Build this out with a collection.
  * @param collection The collection.
  * @return this.
  */
 public Gedcomx SetCollection(Collection collection)
 {
     AddCollection(collection);
     return this;
 }
예제 #4
0
        public Gedcomx AddCollection(Collection collection)
        {
            if (collection != null)
            {
                if (Collections == null)
                {
                    Collections = new List<Collection>();
                }

                Collections.Add(collection);
            }

            return this;
        }
 /// <summary>
 /// Visits the collection.
 /// </summary>
 /// <param name="collection">The collection to visit.</param>
 public virtual void VisitCollection(Collection collection)
 {
     this.contextStack.Push(collection);
     this.contextStack.Pop();
 }
 public override void VisitCollection(Collection collection)
 {
     BindIfNeeded(collection);
     base.VisitCollection(collection);
 }