Browse Source

[csharp] Removes [Serializable] from ExposedList and its enumarator. Fixes compilation on UWP. See #1193.

badlogic 7 năm trước cách đây
mục cha
commit
2bc3adb366
1 tập tin đã thay đổi với 3 bổ sung5 xóa
  1. 3 5
      spine-csharp/src/ExposedList.cs

+ 3 - 5
spine-csharp/src/ExposedList.cs

@@ -17,10 +17,10 @@
 // distribute, sublicense, and/or sell copies of the Software, and to
 // permit persons to whom the Software is furnished to do so, subject to
 // the following conditions:
-// 
+//
 // The above copyright notice and this permission notice shall be
 // included in all copies or substantial portions of the Software.
-// 
+//
 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
@@ -36,7 +36,6 @@ using System.Collections.Generic;
 using System.Diagnostics;
 
 namespace Spine {
-	[Serializable]
 	[DebuggerDisplay("Count={Count}")]
 	public class ExposedList<T> : IEnumerable<T> {
 		public T[] Items;
@@ -467,7 +466,7 @@ namespace Spine {
 		public T Pop () {
 			if (Count == 0)
 				throw new InvalidOperationException("List is empty. Nothing to pop.");
-			
+
 			int i = Count - 1;
 			T item = Items[i];
 			Items[i] = default(T);
@@ -562,7 +561,6 @@ namespace Spine {
 
 		#endregion
 
-		[Serializable]
 		public struct Enumerator : IEnumerator<T>, IDisposable {
 			private ExposedList<T> l;
 			private int next;