Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
QueryResults.cs
Go to the documentation of this file.
3
5
6internal abstract class QueryResults<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
7{
8 internal virtual bool IsIndexible => false;
9
10 internal virtual int ElementsCount
11 {
12 get
13 {
14 throw new NotSupportedException();
15 }
16 }
17
18 public T this[int index]
19 {
20 get
21 {
22 return GetElement(index);
23 }
24 set
25 {
26 throw new NotSupportedException();
27 }
28 }
29
30 public int Count => ElementsCount;
31
33
35
36 internal virtual T GetElement(int index)
37 {
38 throw new NotSupportedException();
39 }
40
41 int IList<T>.IndexOf(T item)
42 {
43 throw new NotSupportedException();
44 }
45
46 void IList<T>.Insert(int index, T item)
47 {
48 throw new NotSupportedException();
49 }
50
51 void IList<T>.RemoveAt(int index)
52 {
53 throw new NotSupportedException();
54 }
55
57 {
58 throw new NotSupportedException();
59 }
60
62 {
63 throw new NotSupportedException();
64 }
65
67 {
68 throw new NotSupportedException();
69 }
70
72 {
73 throw new NotSupportedException();
74 }
75
77 {
78 throw new NotSupportedException();
79 }
80
82 {
83 for (int index = 0; index < Count; index++)
84 {
85 yield return this[index];
86 }
87 }
88
93}
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
bool ICollection< KeyValuePair< TKey, TValue > >. IsReadOnly
void Add(TKey key, TValue value)
void GivePartitionedStream(IPartitionedStreamRecipient< T > recipient)
virtual T GetElement(int index)
new IEnumerator< T > GetEnumerator()