<Type Name="AvoidRedundancyInMethodNameRule" FullName="Gendarme.Rules.Naming.AvoidRedundancyInMethodNameRule">
  <TypeSignature Language="C#" Value="public class AvoidRedundancyInMethodNameRule : Gendarme.Framework.Rule, Gendarme.Framework.IMethodRule" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit AvoidRedundancyInMethodNameRule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IMethodRule, class Gendarme.Framework.IRule" />
  <AssemblyInfo>
    <AssemblyName>Gendarme.Rules.Naming</AssemblyName>
    <AssemblyVersion>2.11.0.0</AssemblyVersion>
  </AssemblyInfo>
  <Base>
    <BaseTypeName>Gendarme.Framework.Rule</BaseTypeName>
  </Base>
  <Interfaces>
    <Interface>
      <InterfaceName>Gendarme.Framework.IMethodRule</InterfaceName>
    </Interface>
  </Interfaces>
  <Attributes>
    <Attribute>
      <AttributeName>Gendarme.Framework.EngineDependency(typeof(Gendarme.Framework.Engines.NamespaceEngine))</AttributeName>
    </Attribute>
    <Attribute>
      <AttributeName>Gendarme.Framework.Problem("This method's name includes the type name of the first parameter. This usually makes an API more verbose and less future-proof than necessary.")</AttributeName>
    </Attribute>
    <Attribute>
      <AttributeName>Gendarme.Framework.Solution("Remove the type from the method name, move the method into the parameter's type, or create an extension method (if using C#).")</AttributeName>
    </Attribute>
  </Attributes>
  <Docs>
    <summary>
            This rule will fire if a method name embeds the type name of its first parameter.
            Usually, removing that type name makes the API less
            verbose, easier to learn, and more future-proof.
            </summary>
    <remarks>To be added.</remarks>
    <example>
            Bad example:
            <code>
            class PostOffice {
            	public void SendLetter (Letter letter) {
            	}
            	public void SendPackage (Package package) {
            	}
            }
            </code></example>
    <example>
            Good example:
            <code>
            class PostOffice {
            	public void Send (Letter letter) {
            	}
            	public void Send (Package package) {
            	}
            }
            </code></example>
    <example>
            Bad example:
            <code>
            class PostOffice {
            	public static bool IsPackageValid (Package package) {
            		return package.HasAddress &amp;&amp; package.HasStamp;
            	}
            }
            </code></example>
    <example>
            Good example:
            <code>
            class Package {
            	public bool IsValid {
            		get {
            			return HasAddress &amp;&amp; HasStamp;
            		}
            	}
            }
            </code></example>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public AvoidRedundancyInMethodNameRule ();" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Parameters />
      <Docs>
        <summary>To be added.</summary>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="CheckMethod">
      <MemberSignature Language="C#" Value="public Gendarme.Framework.RuleResult CheckMethod (Mono.Cecil.MethodDefinition method);" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype Gendarme.Framework.RuleResult CheckMethod(class Mono.Cecil.MethodDefinition method) cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>Gendarme.Framework.RuleResult</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="method" Type="Mono.Cecil.MethodDefinition" />
      </Parameters>
      <Docs>
        <param name="method">To be added.</param>
        <summary>To be added.</summary>
        <returns>To be added.</returns>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="IgnoreAlienNamespaces">
      <MemberSignature Language="C#" Value="public bool IgnoreAlienNamespaces { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance bool IgnoreAlienNamespaces" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Boolean</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>To be added.</summary>
        <value>To be added.</value>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
  </Members>
</Type>
