Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
LinkedResourceCollection.cs
Go to the documentation of this file.
3
4namespace System.Net.Mail;
5
6public sealed class LinkedResourceCollection : Collection<LinkedResource>, IDisposable
7{
8 private bool _disposed;
9
11 {
12 }
13
14 public void Dispose()
15 {
16 if (_disposed)
17 {
18 return;
19 }
21 {
22 while (enumerator.MoveNext())
23 {
24 LinkedResource current = enumerator.Current;
25 current.Dispose();
26 }
27 }
28 Clear();
29 _disposed = true;
30 }
31
32 protected override void RemoveItem(int index)
33 {
34 if (_disposed)
35 {
36 throw new ObjectDisposedException(GetType().FullName);
37 }
38 base.RemoveItem(index);
39 }
40
41 protected override void ClearItems()
42 {
43 if (_disposed)
44 {
45 throw new ObjectDisposedException(GetType().FullName);
46 }
47 base.ClearItems();
48 }
49
50 protected override void SetItem(int index, LinkedResource item)
51 {
52 if (_disposed)
53 {
54 throw new ObjectDisposedException(GetType().FullName);
55 }
56 if (item == null)
57 {
58 throw new ArgumentNullException("item");
59 }
60 base.SetItem(index, item);
61 }
62
63 protected override void InsertItem(int index, LinkedResource item)
64 {
65 if (_disposed)
66 {
67 throw new ObjectDisposedException(GetType().FullName);
68 }
69 if (item == null)
70 {
71 throw new ArgumentNullException("item");
72 }
73 base.InsertItem(index, item);
74 }
75}
override void InsertItem(int index, LinkedResource item)
override void SetItem(int index, LinkedResource item)