📅  最后修改于: 2022-03-11 14:51:56.048000             🧑  作者: Mango
class MyClass
{
public string Value { get; set; }
}
Queue queue = new Queue();
queue.Enqueue(new MyClass() { Value = "1" });
queue.Peek().Value = 2;
string value = queue.Peek().Value; // is 2