<Type Name="StronglyTypeICollectionMembersRule" FullName="Gendarme.Rules.Design.StronglyTypeICollectionMembersRule">
  <TypeSignature Language="C#" Value="public class StronglyTypeICollectionMembersRule : Gendarme.Rules.Design.StronglyTypedRule, Gendarme.Framework.ITypeRule" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit StronglyTypeICollectionMembersRule extends Gendarme.Rules.Design.StronglyTypedRule 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.Rules.Design.StronglyTypedRule</BaseTypeName>
  </Base>
  <Interfaces>
    <Interface>
      <InterfaceName>Gendarme.Framework.ITypeRule</InterfaceName>
    </Interface>
  </Interfaces>
  <Attributes>
    <Attribute>
      <AttributeName>Gendarme.Framework.FxCopCompatibility("Microsoft.Design", "CA1035:ICollectionImplementationsHaveStronglyTypedMembers")</AttributeName>
    </Attribute>
    <Attribute>
      <AttributeName>Gendarme.Framework.Problem("Types that implement ICollection interface should have strongly typed version of ICollection.CopyTo method")</AttributeName>
    </Attribute>
    <Attribute>
      <AttributeName>Gendarme.Framework.Solution("Explicitly implement ICollection.CopyTo and add strongly typed alternative to it")</AttributeName>
    </Attribute>
  </Attributes>
  <Docs>
    <summary>
            This rule checks that types which implements <c>System.Collections.ICollection</c> interface
            have strongly typed version of the ICollection.CopyTo method.
            This is needed to avoid casting every time this method is used.
            </summary>
    <remarks>To be added.</remarks>
    <example>
            Bad example:
            <code>
            class Bad : ICollection {
            	public void CopyTo (Array array, int index)
            	{
            		// method code
            	}
            	// other ICollection members
            }
            </code></example>
    <example>
            Good example:
            <code>
            class Good : ICollection {
            	public void ICollection.CopyTo (Array array, int index)
            	{
            		// method code
            	}
            	public void CopyTo (Exception [] array, int index)
            	{
            		((ICollection)this).CopyTo(array, index);
            	}
            }
            </code></example>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public StronglyTypeICollectionMembersRule ();" />
      <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="GetMethods">
      <MemberSignature Language="C#" Value="protected override Gendarme.Framework.Helpers.MethodSignature[] GetMethods ();" />
      <MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class Gendarme.Framework.Helpers.MethodSignature[] GetMethods() cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>Gendarme.Framework.Helpers.MethodSignature[]</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <summary>To be added.</summary>
        <returns>To be added.</returns>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="GetProperties">
      <MemberSignature Language="C#" Value="protected override string[] GetProperties ();" />
      <MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance string[] GetProperties() cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.String[]</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <summary>To be added.</summary>
        <returns>To be added.</returns>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="InterfaceName">
      <MemberSignature Language="C#" Value="protected override string InterfaceName { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance string InterfaceName" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>To be added.</summary>
        <value>To be added.</value>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="InterfaceNamespace">
      <MemberSignature Language="C#" Value="protected override string InterfaceNamespace { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance string InterfaceNamespace" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>To be added.</summary>
        <value>To be added.</value>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
  </Members>
</Type>
