using System;
using System.IO;
using System.Collections.Generic;
namespace NaGet.Packages
{
///
/// パッケージリストを提供するプロバイダのリストを示すクラス
///
[Obsolete]
public class ProviderList
{
///
/// パッケージリストのリソースURLの配列
///
public string[] Urls;
///
/// コンストラクタ
///
public ProviderList()
{
}
///
/// コンストラクタ
///
/// プロバイダリストのファイルのパス
public ProviderList(string path)
{
List providerList = new List();
using(StreamReader reader = new StreamReader(path)) {
string line;
while ((line = reader.ReadLine()) != null) {
providerList.Add(line);
}
}
Urls = providerList.ToArray();
}
}
}