Exemple #1
0
 public void ReplaceAll(ManagedList <T> replacement)
 {
     if (replacement == null)
     {
         throw new ArgumentNullException(nameof(replacement));
     }
     this.SyncRoot.EnterWriteLock();
     try { this.Content = replacement.ToList(); }
     finally { this.SyncRoot.ExitWriteLock(); }
 }