3 using System.Collections.Generic;
\r
5 namespace NaGet.Packages
\r
8 /// パッケージリストを提供するプロバイダのリストを示すクラス
\r
10 public class ProviderList
\r
13 /// パッケージリストのリソースURLの配列
\r
15 public string[] Urls;
\r
20 public ProviderList()
\r
27 /// <param name="path">プロバイダリストのファイルのパス</param>
\r
28 public ProviderList(string path)
\r
30 List<string> providerList = new List<string>();
\r
31 using(StreamReader reader = new StreamReader(path)) {
\r
33 while ((line = reader.ReadLine()) != null) {
\r
34 providerList.Add(line);
\r
38 Urls = providerList.ToArray();
\r