Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HttpListenerPrefixCollection.cs
Go to the documentation of this file.
3
4namespace System.Net;
5
7{
8 private readonly HttpListener _httpListener;
9
11
12 public bool IsSynchronized => false;
13
14 public bool IsReadOnly => false;
15
17 {
18 _httpListener = listener;
19 }
20
21 public void CopyTo(Array array, int offset)
22 {
24 if (array == null)
25 {
26 throw new ArgumentNullException("array");
27 }
28 if (Count > array.Length)
29 {
31 }
32 if (offset + Count > array.Length)
33 {
34 throw new ArgumentOutOfRangeException("offset");
35 }
36 int num = 0;
37 foreach (string item in _httpListener.PrefixCollection)
38 {
39 array.SetValue(item, offset + num++);
40 }
41 }
42
43 public void CopyTo(string[] array, int offset)
44 {
46 if (array == null)
47 {
48 throw new ArgumentNullException("array");
49 }
50 if (Count > array.Length)
51 {
53 }
54 if (offset + Count > array.Length)
55 {
56 throw new ArgumentOutOfRangeException("offset");
57 }
58 int num = 0;
59 foreach (string item in _httpListener.PrefixCollection)
60 {
61 array[offset + num++] = item;
62 }
63 }
64
65 public void Add(string uriPrefix)
66 {
68 }
69
70 public bool Contains(string uriPrefix)
71 {
73 }
74
79
84
85 public bool Remove(string uriPrefix)
86 {
88 }
89
90 public void Clear()
91 {
93 }
94}
bool ContainsPrefix(string uriPrefix)
bool RemovePrefix(string uriPrefix)
void RemoveAll(bool clear)
void AddPrefix(string uriPrefix)
static string net_array_too_small
Definition SR.cs:82
Definition SR.cs:7
new IEnumerator< T > GetEnumerator()