Exemplo n.º 1
0
		/// <summary>
		/// Heap factory.
		/// </summary>
		/// <param name="stream">Base stream.</param>
		/// <returns></returns>
		public static MDHeap Create(MDStream stream)
		{
			MDHeap res = null;

			switch (stream.Name) {
				case "#~" :
				case "#-" :
					res = new TablesHeap(stream);
					break;
				case "#Strings" :
					res = new StringsHeap(stream);
					break;
				case "#GUID" :
					res = new GUIDHeap(stream);
					break;
			}

			return res;
		}
Exemplo n.º 2
0
        /// <summary>
        /// Heap factory.
        /// </summary>
        /// <param name="stream">Base stream.</param>
        /// <returns></returns>
        public static MDHeap Create(MDStream stream)
        {
            MDHeap res = null;

            switch (stream.Name)
            {
            case "#~":
            case "#-":
                res = new TablesHeap(stream);
                break;

            case "#Strings":
                res = new StringsHeap(stream);
                break;

            case "#GUID":
                res = new GUIDHeap(stream);
                break;
            }

            return(res);
        }