Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TemporaryFileCopier.cs « IO « System « UnitTestFramework « Tests « System.ComponentModel.Composition « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d1ae9070ba5fbe70fc410a9f9edb1da0ee7ee2fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// -----------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
// -----------------------------------------------------------------------
#if !SILVERLIGHT

using System;

namespace System.IO 
{
    public class TemporaryFileCopier : TemporaryDirectory
    {
        public TemporaryFileCopier(params string[] fileNames)
        {
            foreach (string fileName in fileNames)
            {
                File.Copy(fileName, Path.Combine(DirectoryPath, Path.GetFileName(fileName)));
            }
        }
    }
}

#endif