/// This rule checks for methods using the special serialization attributes,
38
/// This rule checks for methods which use the serialization attributes:
39
39
/// <c>[OnSerializing, OnDeserializing, OnSerialized, OnDeserialized]</c>. You must
40
/// ensure that the methods have the correct signature. They should be <c>private</c>,
40
/// ensure that these methods have the correct signature. They should be <c>private</c>,
41
41
/// return <c>void</c> and have a single parameter of type <c>StreamingContext</c>.
42
42
/// Failure to have the right signature can, in some circumstances, make your assembly
43
43
/// unusable at runtime.
69
69
/// <remarks>This rule is available since Gendarme 2.0</remarks>
70
70
71
71
[Problem ("The method has the wrong signature, it should return System.Void and have a single parameter of type 'System.Runtime.Serialization.StreamingContext' and be private.")]
72
[Solution ("Fix method signature to match the runtime requirements.")]
72
[Solution ("Fix the method signature to match the runtime requirements.")]