<Type Name="UseCorrectSuffixRule" FullName="Gendarme.Rules.Naming.UseCorrectSuffixRule">
  <TypeSignature Language="C#" Value="public class UseCorrectSuffixRule : Gendarme.Framework.Rule, Gendarme.Framework.ITypeRule" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi UseCorrectSuffixRule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IRule, class Gendarme.Framework.ITypeRule" />
  <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.ITypeRule</InterfaceName>
    </Interface>
  </Interfaces>
  <Attributes>
    <Attribute>
      <AttributeName>Gendarme.Framework.FxCopCompatibility("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")</AttributeName>
    </Attribute>
    <Attribute>
      <AttributeName>Gendarme.Framework.FxCopCompatibility("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix")</AttributeName>
    </Attribute>
    <Attribute>
      <AttributeName>Gendarme.Framework.Problem("This type does not end with the correct suffix. That usually happens when you define a custom attribute or exception and forget to append suffixes like 'Attribute' or 'Exception' to the type name.")</AttributeName>
    </Attribute>
    <Attribute>
      <AttributeName>Gendarme.Framework.Solution("Rename the type and append the correct suffix.")</AttributeName>
    </Attribute>
  </Attributes>
  <Docs>
    <summary>
            This rule ensure that types that inherit from certain types or implement certain interfaces
            have a specific suffix. It also ensures that no other
            types are using those suffixes without inheriting/implementing the types/interfaces. E.g.
            <list><item><description><c>System.Attribute</c> should end with <c>Attribute</c></description></item><item><description><c>System.EventArgs</c> should end with <c>EventArgs</c></description></item><item><description><c>System.Exception</c> should end with <c>Exception</c></description></item><item><description><c>System.Collections.Queue</c> should end with <c>Collection</c> or <c>Queue</c></description></item><item><description><c>System.Collections.Stack</c> should end with <c>Collection</c> or <c>Stack</c></description></item><item><description><c>System.Data.DataSet</c> should end with <c>DataSet</c></description></item><item><description><c>System.Data.DataTable</c> should end with <c>DataTable</c> or <c>Collection</c></description></item><item><description><c>System.IO.Stream</c> should end with <c>Stream</c></description></item><item><description><c>System.Security.IPermission</c> should end with <c>Permission</c></description></item><item><description><c>System.Security.Policy.IMembershipCondition</c> should end with <c>Condition</c></description></item><item><description><c>System.Collections.IDictionary</c> or <c>System.Collections.Generic.IDictionary</c> should end with <c>Dictionary</c></description></item><item><description><c>System.Collections.ICollection</c>, <c>System.Collections.Generic.ICollection</c> or <c>System.Collections.IEnumerable</c> should end with <c>Collection</c></description></item></list></summary>
    <remarks>To be added.</remarks>
    <example>
            Bad example:
            <code>
            public sealed class SpecialCode : Attribute {
            	// ...
            }
            </code></example>
    <example>
            Good example:
            <code>
            public sealed class SpecialCodeAttribute : Attribute {
            	// ...
            }
            </code></example>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public UseCorrectSuffixRule ();" />
      <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="CheckType">
      <MemberSignature Language="C#" Value="public Gendarme.Framework.RuleResult CheckType (Mono.Cecil.TypeDefinition type);" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype Gendarme.Framework.RuleResult CheckType(class Mono.Cecil.TypeDefinition type) cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>Gendarme.Framework.RuleResult</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="type" Type="Mono.Cecil.TypeDefinition" />
      </Parameters>
      <Docs>
        <param name="type">To be added.</param>
        <summary>To be added.</summary>
        <returns>To be added.</returns>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
  </Members>
</Type>
