队列中的结构
本文关键字:结构 队列 | 更新日期: 2023-09-27 17:55:33
>我有一个这样的结构:
struct Add
{
public static string url;
public static string password;
public static string fake_path;
public static List<string> upload = new List<string>();
}
从表格中,我填写了所有这些变量。然后我需要将此结构添加到队列中。怎么做?
试试这个
System.Collections.Generic.Queue<Add> queue = new System.Collections.Generic.Queue<Add>();
// queue.Enqueue(new Add(...));