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

« back to all changes in this revision

Viewing changes to gendarme/rules/Gendarme.Rules.BadPractice/CloneMethodShouldNotReturnNullRule.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:
36
36
namespace Gendarme.Rules.BadPractice {
37
37
 
38
38
        /// <summary>
39
 
        /// This rule checks that no <c>Clone()</c> method returns <c>null</c>.
 
39
        /// This rule checks for <c>Clone()</c> methods which return <c>null</c>.
40
40
        /// </summary>
41
41
        /// <example>
42
42
        /// Bad example:
66
66
        /// </example>
67
67
 
68
68
        [Problem ("This implementation of ICloneable.Clone() could return null in some circumstances.")]
69
 
        [Solution ("Return an appropriate object rather than returning null.")]
 
69
        [Solution ("Return an appropriate object instead of returning null.")]
70
70
        public class CloneMethodShouldNotReturnNullRule : ReturnNullRule, IMethodRule {
71
71
 
72
72
                private const string ICloneable = "System.ICloneable";