Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
X509CertificateCollection.cs
Go to the documentation of this file.
2
4
6{
8 {
9 private readonly IEnumerator _enumerator;
10
12
13 object IEnumerator.Current => Current;
14
16 {
17 if (mappings == null)
18 {
19 throw new ArgumentNullException("mappings");
20 }
21 _enumerator = ((IEnumerable)mappings).GetEnumerator();
22 }
23
24 public bool MoveNext()
25 {
26 return _enumerator.MoveNext();
27 }
28
30 {
31 return MoveNext();
32 }
33
34 public void Reset()
35 {
37 }
38
40 {
41 Reset();
42 }
43 }
44
45 public X509Certificate this[int index]
46 {
47 get
48 {
49 return (X509Certificate)base.List[index];
50 }
51 set
52 {
53 if (value == null)
54 {
55 throw new ArgumentNullException("value");
56 }
57 base.List[index] = value;
58 }
59 }
60
62 {
63 }
64
69
74
76 {
77 return base.List.Add(value);
78 }
79
81 {
82 if (value == null)
83 {
84 throw new ArgumentNullException("value");
85 }
86 for (int i = 0; i < value.Length; i++)
87 {
88 Add(value[i]);
89 }
90 }
91
93 {
94 if (value == null)
95 {
96 throw new ArgumentNullException("value");
97 }
98 for (int i = 0; i < value.Count; i++)
99 {
100 Add(value[i]);
101 }
102 }
103
105 {
106 return base.List.Contains(value);
107 }
108
109 public void CopyTo(X509Certificate[] array, int index)
110 {
111 base.List.CopyTo(array, index);
112 }
113
115 {
116 return new X509CertificateEnumerator(this);
117 }
118
119 public override int GetHashCode()
120 {
121 int num = 0;
122 foreach (X509Certificate item in base.List)
123 {
124 num += item.GetHashCode();
125 }
126 return num;
127 }
128
130 {
131 return base.List.IndexOf(value);
132 }
133
135 {
136 base.List.Insert(index, value);
137 }
138
140 {
141 base.List.Remove(value);
142 }
143
144 protected override void OnValidate(object value)
145 {
146 base.OnValidate(value);
147 if (!(value is X509Certificate))
148 {
149 throw new ArgumentException(System.SR.Arg_InvalidType, "value");
150 }
151 }
152}
static string Arg_InvalidType
Definition SR.cs:24
Definition SR.cs:7