forked from aly/qstbak
306 lines
8.6 KiB
C#
306 lines
8.6 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
[CompilerGenerated]
|
|
internal sealed class _003C_003Ez__ReadOnlySingleElementList<T> : IEnumerable, ICollection, IList, IEnumerable<T>, IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>, IList<T>
|
|
{
|
|
private sealed class Enumerator : IDisposable, IEnumerator, IEnumerator<T>
|
|
{
|
|
object IEnumerator.Current => _item;
|
|
|
|
T IEnumerator<T>.Current => _item;
|
|
|
|
public Enumerator(T item)
|
|
{
|
|
_item = item;
|
|
}
|
|
|
|
bool IEnumerator.MoveNext()
|
|
{
|
|
int num = (_moveNextCalled ? 247413323 : 247413320);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 247413322;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 1:
|
|
return false;
|
|
case 2:
|
|
return _moveNextCalled = true;
|
|
case 0:
|
|
goto IL_0055;
|
|
}
|
|
continue;
|
|
IL_0055:
|
|
num = 247413320;
|
|
}
|
|
}
|
|
|
|
void IEnumerator.Reset()
|
|
{
|
|
_moveNextCalled = false;
|
|
}
|
|
|
|
void IDisposable.Dispose()
|
|
{
|
|
}
|
|
}
|
|
|
|
int ICollection.Count => 1;
|
|
|
|
bool ICollection.IsSynchronized => false;
|
|
|
|
object ICollection.SyncRoot => this;
|
|
|
|
object? IList.this[int index]
|
|
{
|
|
get
|
|
{
|
|
int num = ((index == 0) ? 2495584 : 2495587);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 2495585;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 1:
|
|
return _item;
|
|
case 2:
|
|
throw _202D_202E_202A_206A_206C_200F_202B_200F_202A_206B_200B_202A_202C_202A_206A_206C_202B_200F_202A_206B_202C_202D_200F_200E_202C_206D_206C_206C_202E_200B_200E_200F_200F_200C_206C_202C_206F_206E_200B_202E_202E();
|
|
case 0:
|
|
goto IL_0055;
|
|
}
|
|
continue;
|
|
IL_0055:
|
|
num = 2495587;
|
|
}
|
|
}
|
|
set
|
|
{
|
|
throw _200D_206D_202D_202C_206E_206F_202C_202A_200C_206F_206A_202D_200C_206F_200D_200E_202A_206A_202D_202D_206F_202B_202B_206D_202C_200C_206A_202C_200D_202A_202D_200F_206D_200B_202E_206B_200E_200D_206B_206D_202E();
|
|
}
|
|
}
|
|
|
|
bool IList.IsFixedSize => true;
|
|
|
|
bool IList.IsReadOnly => true;
|
|
|
|
int IReadOnlyCollection<T>.Count => 1;
|
|
|
|
T IReadOnlyList<T>.this[int index]
|
|
{
|
|
get
|
|
{
|
|
int num = ((index == 0) ? (-1500986328) : (-1500986325));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1500986327;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 1:
|
|
return _item;
|
|
case 2:
|
|
throw _202D_202E_202A_206A_206C_200F_202B_200F_202A_206B_200B_202A_202C_202A_206A_206C_202B_200F_202A_206B_202C_202D_200F_200E_202C_206D_206C_206C_202E_200B_200E_200F_200F_200C_206C_202C_206F_206E_200B_202E_202E();
|
|
case 0:
|
|
goto IL_004e;
|
|
}
|
|
continue;
|
|
IL_004e:
|
|
num = -1500986325;
|
|
}
|
|
}
|
|
}
|
|
|
|
int ICollection<T>.Count => 1;
|
|
|
|
bool ICollection<T>.IsReadOnly => true;
|
|
|
|
T IList<T>.this[int index]
|
|
{
|
|
get
|
|
{
|
|
int num = ((index == 0) ? 246612200 : 246612201);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 246612200;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 2:
|
|
goto IL_0041;
|
|
case 0:
|
|
return _item;
|
|
case 1:
|
|
throw _202D_202E_202A_206A_206C_200F_202B_200F_202A_206B_200B_202A_202C_202A_206A_206C_202B_200F_202A_206B_202C_202D_200F_200E_202C_206D_206C_206C_202E_200B_200E_200F_200F_200C_206C_202C_206F_206E_200B_202E_202E();
|
|
}
|
|
continue;
|
|
IL_0041:
|
|
num = 246612201;
|
|
}
|
|
}
|
|
set
|
|
{
|
|
throw _200D_206D_202D_202C_206E_206F_202C_202A_200C_206F_206A_202D_200C_206F_200D_200E_202A_206A_202D_202D_206F_202B_202B_206D_202C_200C_206A_202C_200D_202A_202D_200F_206D_200B_202E_206B_200E_200D_206B_206D_202E();
|
|
}
|
|
}
|
|
|
|
public _003C_003Ez__ReadOnlySingleElementList(T item)
|
|
{
|
|
_item = item;
|
|
}
|
|
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return new Enumerator(_item);
|
|
}
|
|
|
|
void ICollection.CopyTo(Array array, int index)
|
|
{
|
|
_206C_200B_202C_206B_206C_200D_202D_202E_206B_206A_206D_200B_206D_200B_206E_200D_206F_206F_206E_206B_202E_200E_206E_200C_202D_202A_206E_206B_200B_202D_202E_202E_206D_202D_202B_200E_206A_202D_202E_206C_202E(array, (object)_item, index);
|
|
}
|
|
|
|
int IList.Add(object? value)
|
|
{
|
|
throw _200D_206D_202D_202C_206E_206F_202C_202A_200C_206F_206A_202D_200C_206F_200D_200E_202A_206A_202D_202D_206F_202B_202B_206D_202C_200C_206A_202C_200D_202A_202D_200F_206D_200B_202E_206B_200E_200D_206B_206D_202E();
|
|
}
|
|
|
|
void IList.Clear()
|
|
{
|
|
throw _200D_206D_202D_202C_206E_206F_202C_202A_200C_206F_206A_202D_200C_206F_200D_200E_202A_206A_202D_202D_206F_202B_202B_206D_202C_200C_206A_202C_200D_202A_202D_200F_206D_200B_202E_206B_200E_200D_206B_206D_202E();
|
|
}
|
|
|
|
bool IList.Contains(object? value)
|
|
{
|
|
return EqualityComparer<T>.Default.Equals(_item, (T)value);
|
|
}
|
|
|
|
int IList.IndexOf(object? value)
|
|
{
|
|
int num = (EqualityComparer<T>.Default.Equals(_item, (T)value) ? 135208521 : 135208522);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 135208520;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
goto IL_0056;
|
|
case 2:
|
|
return -1;
|
|
case 1:
|
|
return 0;
|
|
}
|
|
continue;
|
|
IL_0056:
|
|
num = 135208522;
|
|
}
|
|
}
|
|
|
|
void IList.Insert(int index, object? value)
|
|
{
|
|
throw _200D_206D_202D_202C_206E_206F_202C_202A_200C_206F_206A_202D_200C_206F_200D_200E_202A_206A_202D_202D_206F_202B_202B_206D_202C_200C_206A_202C_200D_202A_202D_200F_206D_200B_202E_206B_200E_200D_206B_206D_202E();
|
|
}
|
|
|
|
void IList.Remove(object? value)
|
|
{
|
|
throw _200D_206D_202D_202C_206E_206F_202C_202A_200C_206F_206A_202D_200C_206F_200D_200E_202A_206A_202D_202D_206F_202B_202B_206D_202C_200C_206A_202C_200D_202A_202D_200F_206D_200B_202E_206B_200E_200D_206B_206D_202E();
|
|
}
|
|
|
|
void IList.RemoveAt(int index)
|
|
{
|
|
throw _200D_206D_202D_202C_206E_206F_202C_202A_200C_206F_206A_202D_200C_206F_200D_200E_202A_206A_202D_202D_206F_202B_202B_206D_202C_200C_206A_202C_200D_202A_202D_200F_206D_200B_202E_206B_200E_200D_206B_206D_202E();
|
|
}
|
|
|
|
IEnumerator<T> IEnumerable<T>.GetEnumerator()
|
|
{
|
|
return new Enumerator(_item);
|
|
}
|
|
|
|
void ICollection<T>.Add(T item)
|
|
{
|
|
throw _200D_206D_202D_202C_206E_206F_202C_202A_200C_206F_206A_202D_200C_206F_200D_200E_202A_206A_202D_202D_206F_202B_202B_206D_202C_200C_206A_202C_200D_202A_202D_200F_206D_200B_202E_206B_200E_200D_206B_206D_202E();
|
|
}
|
|
|
|
void ICollection<T>.Clear()
|
|
{
|
|
throw _200D_206D_202D_202C_206E_206F_202C_202A_200C_206F_206A_202D_200C_206F_200D_200E_202A_206A_202D_202D_206F_202B_202B_206D_202C_200C_206A_202C_200D_202A_202D_200F_206D_200B_202E_206B_200E_200D_206B_206D_202E();
|
|
}
|
|
|
|
bool ICollection<T>.Contains(T item)
|
|
{
|
|
return EqualityComparer<T>.Default.Equals(_item, item);
|
|
}
|
|
|
|
void ICollection<T>.CopyTo(T[] array, int arrayIndex)
|
|
{
|
|
array[arrayIndex] = _item;
|
|
}
|
|
|
|
bool ICollection<T>.Remove(T item)
|
|
{
|
|
throw _200D_206D_202D_202C_206E_206F_202C_202A_200C_206F_206A_202D_200C_206F_200D_200E_202A_206A_202D_202D_206F_202B_202B_206D_202C_200C_206A_202C_200D_202A_202D_200F_206D_200B_202E_206B_200E_200D_206B_206D_202E();
|
|
}
|
|
|
|
int IList<T>.IndexOf(T item)
|
|
{
|
|
int num = (EqualityComparer<T>.Default.Equals(_item, item) ? (-2052686167) : (-2052686166));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -2052686165;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
goto IL_0053;
|
|
case 1:
|
|
return -1;
|
|
case 2:
|
|
return 0;
|
|
}
|
|
continue;
|
|
IL_0053:
|
|
num = -2052686166;
|
|
}
|
|
}
|
|
|
|
void IList<T>.Insert(int index, T item)
|
|
{
|
|
throw _200D_206D_202D_202C_206E_206F_202C_202A_200C_206F_206A_202D_200C_206F_200D_200E_202A_206A_202D_202D_206F_202B_202B_206D_202C_200C_206A_202C_200D_202A_202D_200F_206D_200B_202E_206B_200E_200D_206B_206D_202E();
|
|
}
|
|
|
|
void IList<T>.RemoveAt(int index)
|
|
{
|
|
throw _200D_206D_202D_202C_206E_206F_202C_202A_200C_206F_206A_202D_200C_206F_200D_200E_202A_206A_202D_202D_206F_202B_202B_206D_202C_200C_206A_202C_200D_202A_202D_200F_206D_200B_202E_206B_200E_200D_206B_206D_202E();
|
|
}
|
|
|
|
static void _206C_200B_202C_206B_206C_200D_202D_202E_206B_206A_206D_200B_206D_200B_206E_200D_206F_206F_206E_206B_202E_200E_206E_200C_202D_202A_206E_206B_200B_202D_202E_202E_206D_202D_202B_200E_206A_202D_202E_206C_202E(Array P_0, object P_1, int P_2)
|
|
{
|
|
P_0.SetValue(P_1, P_2);
|
|
}
|
|
|
|
static IndexOutOfRangeException _202D_202E_202A_206A_206C_200F_202B_200F_202A_206B_200B_202A_202C_202A_206A_206C_202B_200F_202A_206B_202C_202D_200F_200E_202C_206D_206C_206C_202E_200B_200E_200F_200F_200C_206C_202C_206F_206E_200B_202E_202E()
|
|
{
|
|
return new IndexOutOfRangeException();
|
|
}
|
|
|
|
static NotSupportedException _200D_206D_202D_202C_206E_206F_202C_202A_200C_206F_206A_202D_200C_206F_200D_200E_202A_206A_202D_202D_206F_202B_202B_206D_202C_200C_206A_202C_200D_202A_202D_200F_206D_200B_202E_206B_200E_200D_206B_206D_202E()
|
|
{
|
|
return new NotSupportedException();
|
|
}
|
|
}
|