示例#1
0
 public void Clear()
 {
     First = null;
     OnClear(this, new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this));
 }
示例#2
0
 public void AddFirst(object item)
 {
     var node = new LinkedListNode(item) { Next = First };
     First = node;
     OnInsert(this, new CollectionChangeEventArgs(CollectionChangeAction.Add, item));
 }