diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-01-20 19:55:55 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-01-20 19:55:55 +0300 |
commit | e1f2b951e65c9639694ab1d8144ebe122729da77 (patch) | |
tree | f543eec41f23b6c35a44ddd813d22444eb8bdfc2 | |
parent | b3fba48529ea068b0ecd753c1283d33a0098b87d (diff) |
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. |