10 public static void Init()
16 NewsList.dict =
new Dictionary<string, List<
NewsList.
Item>>();
18 NewsList.<Init>g__AddDir|3_0(CorePath.CorePackage.News);
27 for (
int i = 0; i < 1000; i++)
30 if (!list.Contains(item))
45 internal static void <Init>g__AddDir|3_0(
string path)
47 DirectoryInfo directoryInfo =
new DirectoryInfo(path);
49 foreach (FileInfo fileInfo
in directoryInfo.GetFiles())
51 if (!(fileInfo.Extension !=
".txt"))
53 string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(fileInfo.Name);
55 StreamReader streamReader =
new StreamReader(fileInfo.FullName);
57 while (!streamReader.EndOfStream)
59 string text2 = streamReader.ReadLine();
60 if (!
string.IsNullOrEmpty(text2))
62 if (text2.StartsWith(
'@') && item !=
null)
64 foreach (
string item2
in text2.TrimStart(
'@').Split(
',', StringSplitOptions.None))
66 item.listImageId.Add(item2);
69 else if (text ==
null)
83 NewsList.dict.Add(fileNameWithoutExtension, list);
96 public static Dictionary<string, List<
NewsList.
Item>> dict;
108 public string content;
111 public List<string> listImageId =
new List<string>();