diff options
author | Viktor Hofer <viktor.hofer@outlook.com> | 2017-07-28 01:28:33 +0300 |
---|---|---|
committer | Viktor Hofer <viktor.hofer@outlook.com> | 2017-08-04 23:12:10 +0300 |
commit | db6afc72924b33e01c8202e59a0cc2b79474de7f (patch) | |
tree | bf414aee46aa591d27c6bb7721d38da0d3211db7 /src | |
parent | 1b9a1f9ede940eb15f5aef01b15c7739b4012f75 (diff) |
Reenable cloning of serializable object for uapaot
Diffstat (limited to 'src')
-rw-r--r-- | src/Common/tests/System/Runtime/Serialization/Formatters/BinaryFormatterHelpers.cs | 11 | ||||
-rw-r--r-- | src/System.ObjectModel/tests/KeyedCollection/Serialization.cs | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/Common/tests/System/Runtime/Serialization/Formatters/BinaryFormatterHelpers.cs b/src/Common/tests/System/Runtime/Serialization/Formatters/BinaryFormatterHelpers.cs index 51383d4c6c..936ea0c7f7 100644 --- a/src/Common/tests/System/Runtime/Serialization/Formatters/BinaryFormatterHelpers.cs +++ b/src/Common/tests/System/Runtime/Serialization/Formatters/BinaryFormatterHelpers.cs @@ -15,10 +15,6 @@ namespace System.Runtime.Serialization.Formatters.Tests { internal static T Clone<T>(T obj) { - // https://github.com/dotnet/corefx/issues/18942 - Binary serialization still WIP on AOT platforms. - if (RuntimeInformation.FrameworkDescription.StartsWith(".NET Native")) - return obj; - var f = new BinaryFormatter(); using (var s = new MemoryStream()) { @@ -30,13 +26,6 @@ namespace System.Runtime.Serialization.Formatters.Tests internal static Lazy<T> Clone<T>(Lazy<T> lazy) { - // https://github.com/dotnet/corefx/issues/18942 - Binary serialization still WIP on AOT platforms. - if (RuntimeInformation.FrameworkDescription.StartsWith(".NET Native")) - { - T ignore = lazy.Value; - return lazy; - } - return Clone<Lazy<T>>(lazy); } diff --git a/src/System.ObjectModel/tests/KeyedCollection/Serialization.cs b/src/System.ObjectModel/tests/KeyedCollection/Serialization.cs index 31be8b2da1..1881e6d63c 100644 --- a/src/System.ObjectModel/tests/KeyedCollection/Serialization.cs +++ b/src/System.ObjectModel/tests/KeyedCollection/Serialization.cs @@ -19,7 +19,6 @@ namespace System.Collections.ObjectModel.Tests [Theory] [MemberData(nameof(SerializeDeserialize_Roundtrips_MemberData))] - [SkipOnTargetFramework(TargetFrameworkMonikers.UapAot, "Serialization still WIP in UapAot: https://github.com/dotnet/corefx/issues/18942")] public void SerializeDeserialize_Roundtrips(TestCollection c) { TestCollection clone = BinaryFormatterHelpers.Clone(c); |