Java มี CopyOnWriteArrayList แต่ C# ไม่มี ให้ใช้ SynchronizedCollection<T> แทน
Syntax:
public class SynchronizedCollection<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IList, ICollection
Properties:
| ลำดับ | Property & Description |
|---|---|
| 1 | Count - นับจำนวน Elements |
| 2 | Item[Int32] - ดึง Element ตาม Index |
| 3 | Items - ดึงรายการ Elements ทั้งหมด |
| 4 | SyncRoot - Object สำหรับ Synchronize |