rspec/rules/S3927/description.adoc

9 lines
690 B
Plaintext
Raw Normal View History

2020-06-30 12:48:39 +02:00
Serialization event handlers that don't have the correct signature will simply not be called, thus bypassing any attempts to augment the automated de/serialization.
2021-01-27 13:42:22 +01:00
This rule raises an issue when a method marked with one of the following attributes is ``++publi{cpp}``, ``++stati{cpp}``, does not return ``++void++``, has type parameters, or does not have a single parameter of type ``++System.Runtime.Serialization.StreamingContext++``:
2021-01-27 13:42:22 +01:00
* ``++System.Runtime.Serialization.OnSerializingAttribute++``
* ``++System.Runtime.Serialization.OnSerializedAttribute++``
* ``++System.Runtime.Serialization.OnDeserializingAttribute++``
* ``++System.Runtime.Serialization.OnDeserializedAttribute++``