Пример #1
0
        /// <summary>
        /// Unpack this object from the bundle
        /// </summary>
        /// <param name="key">the key that it was stored with in the bundle</param>
        /// <param name="B">The bundle that it is packed in</param>
        /// <returns> the unpacked object from the bundle</returns>
        public IBundleable unpackOoject(string key, Bundle B)
        {
            IBundleable temp = null;

            temp = B.getBundleable(key);
            return(temp);
        }
Пример #2
0
        /// <summary>
        /// Private internal method call used by the IBundleable interfaces unpackObject(key) method
        /// </summary>
        /// <param name="key">the key passed to the unpackObject method</param>
        /// <returns>The unpacked object stored under the packed key</returns>
        public IBundleable getPackedObject(string key)
        {
            IBundleable temp = getBundleable(key);

            return(temp);
        }
Пример #3
0
 /// <summary>
 /// Private internal method call used by the IBundleable interfaces packObject(key,obj) method
 /// </summary>
 /// <param name="key">the key passed to the packObject method</param>
 /// <param name="obj">the onject passed to the packObject method</param>
 public void storePackedObject(string key, IBundleable obj)
 {
     putBundleable(key, obj);
 }
Пример #4
0
 /// <summary>
 /// Package an IBundleable object into this bundle
 /// </summary>
 /// <param name="key">the key to store the object under</param>
 /// <param name="obj">The object to package</param>
 private void putBundleable(string key, IBundleable obj)
 {
     bundleableObjects.Add(new Tuple <string, IBundleable>(key, obj));
 }
Пример #5
0
        /// <summary>
        /// Pack this object into a bundle
        /// </summary>
        /// <param name="key">the key that it will be stored with in the bundle</param>
        /// <param name="B"> The bundle to pack it in</param>
        public void packObject(string key, Bundle B)
        {
            IBundleable temp = this;

            B.putBundleable(key, temp);
        }
        /// <summary>
        /// Unpack this object from the bundle
        /// </summary>
        /// <param name="key">the key that it was stored with in the bundle</param>
        /// <param name="B">The bundle that it is packed in</param>
        /// <returns> the unpacked object from the bundle</returns>
        IBundleable IBundleable.unpackOoject(string key, Bundle B)
        {
            IBundleable temp = B.getPackedObject(key);

            return(temp);
        }
        /// <summary>
        /// Pack this object into a bundle
        /// </summary>
        /// <param name="key">the key that it will be stored with in the bundle</param>
        /// <param name="B"> The bundle to pack it in</param>
        void IBundleable.packObject(string key, Bundle B)
        {
            IBundleable temp = this;

            B.storePackedObject(key, temp);
        }
Пример #8
0
 /// <summary>
 /// Package an IBundleable object into this bundle
 /// </summary>
 /// <param name="key">the key to store the object under</param>
 /// <param name="obj">The object to package</param>
 private void putBundleable(string key, IBundleable obj)
 {
     bundleableObjects.Add(new Tuple<string, IBundleable>(key, obj));
 }
Пример #9
0
 /// <summary>
 /// Private internal method call used by the IBundleable interfaces packObject(key,obj) method
 /// </summary>
 /// <param name="key">the key passed to the packObject method</param>
 /// <param name="obj">the onject passed to the packObject method</param>
 public void storePackedObject(string key, IBundleable obj)
 {
     putBundleable(key, obj);
 }