コード例 #1
0
        private PersistentHeap InitHeap(string heapName, int userHeaderSize)
        {
            PersistentHeap heap;

            try
            {
                heap = new PersistentHeap(heapName, userHeaderSize);
            }
            catch (FileNameConflictException)
            {
                heap = new PersistentHeap(heapName);
                heap.Delete();
                heap = new PersistentHeap(heapName, userHeaderSize);
            }
            return(heap);
        }