From e1f2b951e65c9639694ab1d8144ebe122729da77 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Fri, 20 Jan 2017 08:55:55 -0800 Subject: Make System.Tuple as serializable --- src/System.Private.CoreLib/src/System/Tuple.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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. -- cgit v1.2.3