diff --git a/Assets/XIL/ILSource/ILRuntime/Other/ThreadSafeDictionary.cs b/Assets/XIL/ILSource/ILRuntime/Other/ThreadSafeDictionary.cs
index 1b480d2d..2b6e4f1c 100644
--- a/Assets/XIL/ILSource/ILRuntime/Other/ThreadSafeDictionary.cs
+++ b/Assets/XIL/ILSource/ILRuntime/Other/ThreadSafeDictionary.cs
@@ -1,132 +1,130 @@
-#if USE_HOT
using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Diagnostics;
-using System.Runtime.Versioning;
-using System.Threading;
-
-namespace ILRuntime.Other
-{
- ///
- /// A thread safe dictionary for internal use
- ///
- ///
- ///
- class ThreadSafeDictionary : IDictionary
- {
- Dictionary dic = new Dictionary();
-
- public Dictionary InnerDictionary { get { return dic; } }
- public V this[K key]
- {
- get
- {
- lock(dic)
- return dic[key];
- }
-
- set
- {
- lock(dic)
- dic[key] = value;
- }
- }
-
- public int Count
- {
- get
- {
- lock(dic)
- return dic.Count;
- }
- }
-
- public bool IsReadOnly
- {
- get
- {
- lock(dic)
- return IsReadOnly;
- }
- }
-
- public ICollection Keys
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public ICollection Values
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public void Add(KeyValuePair item)
- {
- lock (dic)
- dic.Add(item.Key, item.Value);
- }
-
- public void Add(K key, V value)
- {
- lock(dic)
- dic.Add(key, value);
- }
-
- public void Clear()
- {
- lock(dic)
- dic.Clear();
- }
-
- public bool Contains(KeyValuePair item)
- {
- lock(dic)
- return dic.ContainsKey(item.Key);
- }
-
- public bool ContainsKey(K key)
- {
- lock(dic)
- return dic.ContainsKey(key);
- }
-
- public void CopyTo(KeyValuePair[] array, int arrayIndex)
- {
- throw new NotImplementedException();
- }
-
- public IEnumerator> GetEnumerator()
- {
- throw new NotImplementedException();
- }
-
- public bool Remove(KeyValuePair item)
- {
- throw new NotImplementedException();
- }
-
- public bool Remove(K key)
- {
- lock(dic)
- return dic.Remove(key);
- }
-
- public bool TryGetValue(K key, out V value)
- {
- lock(dic)
- return dic.TryGetValue(key, out value);
- }
-
- IEnumerator IEnumerable.GetEnumerator()
- {
- throw new NotImplementedException();
- }
- }
-}
#endif
\ No newline at end of file
+#if USE_HOT
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Diagnostics;
+using System.Runtime.Versioning;
+using System.Threading;
+
+namespace ILRuntime.Other
+{
+ ///
+ /// A thread safe dictionary for internal use
+ ///
+ ///
+ ///
+ class ThreadSafeDictionary : IDictionary
+ {
+ Dictionary dic = new Dictionary();
+
+ public Dictionary InnerDictionary { get { return dic; } }
+ public V this[K key]
+ {
+ get
+ {
+ return dic[key];
+ }
+
+ set
+ {
+ lock(dic)
+ dic[key] = value;
+ }
+ }
+
+ public int Count
+ {
+ get
+ {
+ lock(dic)
+ return dic.Count;
+ }
+ }
+
+ public bool IsReadOnly
+ {
+ get
+ {
+ lock(dic)
+ return IsReadOnly;
+ }
+ }
+
+ public ICollection Keys
+ {
+ get
+ {
+ throw new NotImplementedException();
+ }
+ }
+
+ public ICollection Values
+ {
+ get
+ {
+ throw new NotImplementedException();
+ }
+ }
+
+ public void Add(KeyValuePair item)
+ {
+ lock (dic)
+ dic.Add(item.Key, item.Value);
+ }
+
+ public void Add(K key, V value)
+ {
+ lock(dic)
+ dic.Add(key, value);
+ }
+
+ public void Clear()
+ {
+ lock(dic)
+ dic.Clear();
+ }
+
+ public bool Contains(KeyValuePair item)
+ {
+ return dic.ContainsKey(item.Key);
+ }
+
+ public bool ContainsKey(K key)
+ {
+ return dic.ContainsKey(key);
+ }
+
+ public void CopyTo(KeyValuePair[] array, int arrayIndex)
+ {
+ throw new NotImplementedException();
+ }
+
+ public IEnumerator> GetEnumerator()
+ {
+ throw new NotImplementedException();
+ }
+
+ public bool Remove(KeyValuePair item)
+ {
+ throw new NotImplementedException();
+ }
+
+ public bool Remove(K key)
+ {
+ lock(dic)
+ return dic.Remove(key);
+ }
+
+ public bool TryGetValue(K key, out V value)
+ {
+ return dic.TryGetValue(key, out value);
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
+#endif
\ No newline at end of file
diff --git a/Assets/XIL/ILSource/ILRuntime/Other/UncheckedList.cs b/Assets/XIL/ILSource/ILRuntime/Other/UncheckedList.cs
index de0568a2..3e4974d8 100644
--- a/Assets/XIL/ILSource/ILRuntime/Other/UncheckedList.cs
+++ b/Assets/XIL/ILSource/ILRuntime/Other/UncheckedList.cs
@@ -1,999 +1,996 @@
-#if USE_HOT
using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Diagnostics;
-using System.Runtime.Versioning;
-using System.Threading;
-
-namespace ILRuntime.Other
-{
- ///
- /// This is a copy of the latest .NET framework 4.5 List implementation, with all extraneous checking removed.
- ///
- ///
- [Serializable]
- public class UncheckedList : IList, ICollection, IEnumerable, IEnumerable, IList, ICollection
- {
-
- private const int _defaultCapacity = 4;
-
- private T[] _items;
- private int _size;
- private int _version;
- [NonSerialized]
- private Object _syncRoot;
-
- private static readonly T[] _emptyArray = new T[0];
-
- // Constructs a UncheckedList. The list is initially empty and has a capacity
- // of zero. Upon adding the first element to the list the capacity is
- // increased to _defaultCapacity, and then increased in multiples of two
- // as required.
- public UncheckedList()
- {
- _items = _emptyArray;
- }
-
- // Constructs a UncheckedList with a given initial capacity. The list is
- // initially empty, but will have room for the given number of elements
- // before any reallocations are required.
- //
- public UncheckedList(int capacity)
- {
- if (capacity == 0)
- _items = _emptyArray;
- else
- _items = new T[capacity];
- }
-
- // Constructs a UncheckedList, copying the contents of the given collection. The
- // size and capacity of the new list will both be equal to the size of the
- // given collection.
- //
- public UncheckedList(IEnumerable collection)
- {
- ICollection c = collection as ICollection;
- if (c != null)
- {
- int count = c.Count;
- if (count == 0)
- {
- _items = _emptyArray;
- }
- else
- {
- _items = new T[count];
- c.CopyTo(_items, 0);
- _size = count;
- }
- }
- else
- {
- _size = 0;
- _items = _emptyArray;
- AddEnumerable(collection);
- }
- }
-
- // Gets and sets the capacity of this list. The capacity is the size of
- // the internal array used to hold items. When set, the internal
- // array of the list is reallocated to the given capacity.
- //
- public int Capacity
- {
- get
- {
- return _items.Length;
- }
- set
- {
- if (value != _items.Length)
- {
- if (value > 0)
- {
- T[] newItems = new T[value];
- if (_size > 0)
- {
- Array.Copy(_items, 0, newItems, 0, _size);
- }
- _items = newItems;
- }
- else
- {
- _items = _emptyArray;
- }
- }
- }
- }
-
- // Read-only property describing how many elements are in the UncheckedList.
- public int Count
- {
- get
- {
- return _size;
- }
- }
-
- bool System.Collections.IList.IsFixedSize
- {
- get { return false; }
- }
-
-
- // Is this UncheckedList read-only?
- bool ICollection.IsReadOnly
- {
- get { return false; }
- }
-
- bool System.Collections.IList.IsReadOnly
- {
- get { return false; }
- }
-
- // Is this UncheckedList synchronized (thread-safe)?
- bool System.Collections.ICollection.IsSynchronized
- {
- get { return false; }
- }
-
- // Synchronization root for this object.
- Object System.Collections.ICollection.SyncRoot
- {
- get
- {
- if (_syncRoot == null)
- {
- System.Threading.Interlocked.CompareExchange