Example #1
0
        /***************************************************/

        // Assign the object to a collection.
        internal void AssignToCollection(IndexedCollection <GuanacoIndexable> collection, int id)
        {
            if (this._parentCollection != null || this._id != null)
            {
                throw new Exception("This object already belongs to a collection.");
            }

            this._parentCollection = collection;
            this._id = new GuanacoID(id);
        }
Example #2
0
        /***************************************************/

        // Unassign the object from a collection.
        internal void UnassignFromCollection()
        {
            this._parentCollection = null;
            this._id = null;
        }