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