~ubuntu-branches/debian/sid/mono-tools/sid

« back to all changes in this revision

Viewing changes to gendarme/rules/Gendarme.Rules.Serialization/UseCorrectSignatureForSerializationMethodsRule.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-09-13 09:08:47 UTC
  • mfrom: (14.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20100913090847-lhu3z021w2azaj8q
Tags: 2.6.2-3
Upload to Debian Unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
namespace Gendarme.Rules.Serialization {
36
36
 
37
37
        /// <summary>
38
 
        /// 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.")]
73
73
        [FxCopCompatibility ("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")]
74
74
        public class UseCorrectSignatureForSerializationMethodsRule : Rule, IMethodRule {
75
75