diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-01-20 22:19:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-20 22:19:02 +0300 |
commit | 909f23ca551351e12182de173b4c2b123894ae8b (patch) | |
tree | bb665534b0ede2032cd4dc6ad0855f07fbdaa537 | |
parent | 88b9ffd7508c264c6df26353ac357030a3ddbec5 (diff) | |
parent | e1f2b951e65c9639694ab1d8144ebe122729da77 (diff) |
Merge pull request #2551 from jkotas/tuple
Make System.Tuple as serializable
-rw-r--r-- | src/System.Private.CoreLib/src/System/Tuple.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/src/System/Tuple.cs b/src/System.Private.CoreLib/src/System/Tuple.cs index e22c5aea7..d3b7d4f61 100644 --- a/src/System.Private.CoreLib/src/System/Tuple.cs +++ b/src/System.Private.CoreLib/src/System/Tuple.cs @@ -102,6 +102,7 @@ namespace System } } + [Serializable] public class Tuple<T1> : IStructuralEquatable, IStructuralComparable, IComparable, ITupleInternal, ITuple { private readonly T1 m_Item1; // DO NOT change the field name, it's required for compatibility with desktop .NET as it appears in serialization payload. @@ -200,6 +201,7 @@ namespace System } } + [Serializable] public class Tuple<T1, T2> : IStructuralEquatable, IStructuralComparable, IComparable, ITupleInternal, ITuple { private readonly T1 m_Item1; // DO NOT change the field name, it's required for compatibility with desktop .NET as it appears in serialization payload. @@ -313,6 +315,7 @@ namespace System } } + [Serializable] public class Tuple<T1, T2, T3> : IStructuralEquatable, IStructuralComparable, IComparable, ITupleInternal, ITuple { private readonly T1 m_Item1; // DO NOT change the field name, it's required for compatibility with desktop .NET as it appears in serialization payload. @@ -437,6 +440,7 @@ namespace System } } + [Serializable] public class Tuple<T1, T2, T3, T4> : IStructuralEquatable, IStructuralComparable, IComparable, ITupleInternal, ITuple { private readonly T1 m_Item1; // DO NOT change the field name, it's required for compatibility with desktop .NET as it appears in serialization payload. @@ -572,6 +576,7 @@ namespace System } } + [Serializable] public class Tuple<T1, T2, T3, T4, T5> : IStructuralEquatable, IStructuralComparable, IComparable, ITupleInternal, ITuple { private readonly T1 m_Item1; // DO NOT change the field name, it's required for compatibility with desktop .NET as it appears in serialization payload. @@ -718,6 +723,7 @@ namespace System } } + [Serializable] public class Tuple<T1, T2, T3, T4, T5, T6> : IStructuralEquatable, IStructuralComparable, IComparable, ITupleInternal, ITuple { private readonly T1 m_Item1; // DO NOT change the field name, it's required for compatibility with desktop .NET as it appears in serialization payload. @@ -875,6 +881,7 @@ namespace System } } + [Serializable] public class Tuple<T1, T2, T3, T4, T5, T6, T7> : IStructuralEquatable, IStructuralComparable, IComparable, ITupleInternal, ITuple { private readonly T1 m_Item1; // DO NOT change the field name, it's required for compatibility with desktop .NET as it appears in serialization payload. @@ -1043,6 +1050,7 @@ namespace System } } + [Serializable] public class Tuple<T1, T2, T3, T4, T5, T6, T7, TRest> : IStructuralEquatable, IStructuralComparable, IComparable, ITupleInternal, ITuple { private readonly T1 m_Item1; // DO NOT change the field name, it's required for compatibility with desktop .NET as it appears in serialization payload. |