Skip to content

Commit

Permalink
Make TraitCollection serializable in all supported TFMs (#3963)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink committed Aug 24, 2022
1 parent e14a366 commit 3283c8d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Microsoft.TestPlatform.ObjectModel/TraitCollection.cs
Expand Up @@ -11,9 +11,7 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel;
/// <summary>
/// Class that holds collection of traits
/// </summary>
#if NETFRAMEWORK // REVIEW ME: This could be enabled for netcore and netstandard
[Serializable]
#endif
public class TraitCollection : IEnumerable<Trait>
{
internal const string TraitPropertyId = "TestObject.Traits";
Expand All @@ -27,9 +25,7 @@ public class TraitCollection : IEnumerable<Trait>
#pragma warning restore 618
typeof(TestObject));

#if NETFRAMEWORK // REVIEW ME: This could be enabled for netcore and netstandard
[NonSerialized]
#endif
private readonly TestObject _testObject;

internal TraitCollection(TestObject testObject)
Expand Down

0 comments on commit 3283c8d

Please sign in to comment.