mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
[csharp] Removes [Serializable] from ExposedList and its enumarator. Fixes compilation on UWP. See #1193.
This commit is contained in:
parent
02c6f9cc63
commit
2bc3adb366
@ -17,10 +17,10 @@
|
|||||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
// permit persons to whom the Software is furnished to do so, subject to
|
// permit persons to whom the Software is furnished to do so, subject to
|
||||||
// the following conditions:
|
// the following conditions:
|
||||||
//
|
//
|
||||||
// The above copyright notice and this permission notice shall be
|
// The above copyright notice and this permission notice shall be
|
||||||
// included in all copies or substantial portions of the Software.
|
// included in all copies or substantial portions of the Software.
|
||||||
//
|
//
|
||||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
@ -36,7 +36,6 @@ using System.Collections.Generic;
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace Spine {
|
namespace Spine {
|
||||||
[Serializable]
|
|
||||||
[DebuggerDisplay("Count={Count}")]
|
[DebuggerDisplay("Count={Count}")]
|
||||||
public class ExposedList<T> : IEnumerable<T> {
|
public class ExposedList<T> : IEnumerable<T> {
|
||||||
public T[] Items;
|
public T[] Items;
|
||||||
@ -467,7 +466,7 @@ namespace Spine {
|
|||||||
public T Pop () {
|
public T Pop () {
|
||||||
if (Count == 0)
|
if (Count == 0)
|
||||||
throw new InvalidOperationException("List is empty. Nothing to pop.");
|
throw new InvalidOperationException("List is empty. Nothing to pop.");
|
||||||
|
|
||||||
int i = Count - 1;
|
int i = Count - 1;
|
||||||
T item = Items[i];
|
T item = Items[i];
|
||||||
Items[i] = default(T);
|
Items[i] = default(T);
|
||||||
@ -562,7 +561,6 @@ namespace Spine {
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
[Serializable]
|
|
||||||
public struct Enumerator : IEnumerator<T>, IDisposable {
|
public struct Enumerator : IEnumerator<T>, IDisposable {
|
||||||
private ExposedList<T> l;
|
private ExposedList<T> l;
|
||||||
private int next;
|
private int next;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user