<Type Name="EnumsShouldUseInt32Rule" FullName="Gendarme.Rules.Design.EnumsShouldUseInt32Rule">
  <TypeSignature Language="C#" Value="public class EnumsShouldUseInt32Rule : Gendarme.Framework.Rule, Gendarme.Framework.ITypeRule" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit EnumsShouldUseInt32Rule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IRule, class Gendarme.Framework.ITypeRule" />
  <AssemblyInfo>
    <AssemblyName>Gendarme.Rules.Design</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.Design", "CA1028:EnumStorageShouldBeInt32")</AttributeName>
    </Attribute>
    <Attribute>
      <AttributeName>Gendarme.Framework.Problem("Unless required for interoperability this enumeration should use Int32 as its underling storage type.")</AttributeName>
    </Attribute>
    <Attribute>
      <AttributeName>Gendarme.Framework.Solution("Remove the base type from the enumeration declaration (it will then default to Int32).")</AttributeName>
    </Attribute>
  </Attributes>
  <Docs>
    <summary>
            Enumaration types should avoid specifying a non-default storage type for their values
            unless it is required for interoperability (e.g. with native code). If you do use a non-default
            type for the enum, and the enum is externally visible, then prefer the CLS-compliant
            integral types: System.Byte, System.Int16, System.Int32, and System.Int64.
            </summary>
    <remarks>To be added.</remarks>
    <example>
            Bad examples:
            <code>
            public enum SmallEnum : byte {
            	Zero,
            	One
            }
            [Flags]
            public enum SmallFlag : ushort {
            	One = 1,
            	// ...
            	Sixteen = 1 &lt;&lt; 15
            }
            </code></example>
    <example>
            Good example:
            <code>
            public enum SmallEnum {
            	Zero,
            	One
            }
            [Flags]
            public enum SmallFlag {
            	One = 1,
            	// ...
            	Sixteen = 1 &lt;&lt; 15
            }
            </code></example>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public EnumsShouldUseInt32Rule ();" />
      <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>
