diff options
author | Morgan Brown <morganbr@users.noreply.github.com> | 2017-05-17 01:16:29 +0300 |
---|---|---|
committer | Stephen Toub <stoub@microsoft.com> | 2017-05-17 01:16:29 +0300 |
commit | 6dd451f51451a7d0ceea6104b51bd17005e9a0e6 (patch) | |
tree | 035ea5348bf5a8906cc0c32da06bb661f02b47aa /CodeAnalysis.ruleset | |
parent | b0900bb7fd23d91e5d1f47539441b5d47b563d74 (diff) |
Scale back [Serializable] CoreFX types (#19742)
* Remove SerializableAttribute from many CoreFX types that will not be serializable.
* Removes serialization tests for types that are no longer serializable and fixes serializing a couple of types. Includes marking some internal serializable types as public so that they'll be reflectible with .NET Native.
* Remove unneeded pragmas
* Update based on review comments
Diffstat (limited to 'CodeAnalysis.ruleset')
-rw-r--r-- | CodeAnalysis.ruleset | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CodeAnalysis.ruleset b/CodeAnalysis.ruleset index 785a687fc1..2bf447f3f6 100644 --- a/CodeAnalysis.ruleset +++ b/CodeAnalysis.ruleset @@ -19,7 +19,7 @@ <Rule Id="CA2229" Action="Error" /> <!-- Serializable type doesn't have a serialization constructor --> <Rule Id="CA2235" Action="None" /> <!-- Serializable type has non serializable field --> <Rule Id="CA2231" Action="None" /> <!-- Overload operator equals when overriding ValueType.Equals --> - <Rule Id="CA2237" Action="Error" /> <!-- Add [Serializable] to types that implement ISerializable --> + <Rule Id="CA2237" Action="None" /> <!-- Add [Serializable] to types that implement ISerializable --> <Rule Id="CA2200" Action="None"/> <!-- Rethrowing caught exception changes stack information --> |