diff --git a/src/System.Private.CoreLib/src/System/ValueTuple.cs b/src/System.Private.CoreLib/src/System/ValueTuple.cs index 586de9c5d83..4c791479dfb 100755 --- a/src/System.Private.CoreLib/src/System/ValueTuple.cs +++ b/src/System.Private.CoreLib/src/System/ValueTuple.cs @@ -28,6 +28,7 @@ internal interface IValueTupleInternal : ITuple /// - they are mutable rather than readonly, and /// - their members (such as Item1, Item2, etc) are fields rather than properties. /// + [Serializable] public struct ValueTuple : IEquatable, IStructuralEquatable, IStructuralComparable, IComparable, IComparable, IValueTupleInternal, ITuple { @@ -296,6 +297,7 @@ internal static int CombineHashCodes(int h1, int h2, int h3, int h4, int h5, int /// Represents a 1-tuple, or singleton, as a value type. /// The type of the tuple's only component. + [Serializable] public struct ValueTuple : IEquatable>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable>, IValueTupleInternal, ITuple { @@ -460,6 +462,7 @@ object ITuple.this[int index] /// /// The type of the tuple's first component. /// The type of the tuple's second component. + [Serializable] [StructLayout(LayoutKind.Auto)] public struct ValueTuple : IEquatable>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable>, IValueTupleInternal, ITuple @@ -669,6 +672,7 @@ object ITuple.this[int index] /// The type of the tuple's first component. /// The type of the tuple's second component. /// The type of the tuple's third component. + [Serializable] [StructLayout(LayoutKind.Auto)] public struct ValueTuple : IEquatable>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable>, IValueTupleInternal, ITuple @@ -876,6 +880,7 @@ object ITuple.this[int index] /// The type of the tuple's second component. /// The type of the tuple's third component. /// The type of the tuple's fourth component. + [Serializable] [StructLayout(LayoutKind.Auto)] public struct ValueTuple : IEquatable>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable>, IValueTupleInternal, ITuple @@ -1102,6 +1107,7 @@ object ITuple.this[int index] /// The type of the tuple's third component. /// The type of the tuple's fourth component. /// The type of the tuple's fifth component. + [Serializable] [StructLayout(LayoutKind.Auto)] public struct ValueTuple : IEquatable>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable>, IValueTupleInternal, ITuple @@ -1347,6 +1353,7 @@ object ITuple.this[int index] /// The type of the tuple's fourth component. /// The type of the tuple's fifth component. /// The type of the tuple's sixth component. + [Serializable] [StructLayout(LayoutKind.Auto)] public struct ValueTuple : IEquatable>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable>, IValueTupleInternal, ITuple @@ -1611,6 +1618,7 @@ object ITuple.this[int index] /// The type of the tuple's fifth component. /// The type of the tuple's sixth component. /// The type of the tuple's seventh component. + [Serializable] [StructLayout(LayoutKind.Auto)] public struct ValueTuple : IEquatable>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable>, IValueTupleInternal, ITuple @@ -1894,6 +1902,7 @@ object ITuple.this[int index] /// The type of the tuple's sixth component. /// The type of the tuple's seventh component. /// The type of the tuple's eighth component. + [Serializable] [StructLayout(LayoutKind.Auto)] public struct ValueTuple : IEquatable>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable>, IValueTupleInternal, ITuple