<Type Name="RemoveDependenceOnObsoleteCodeRule" FullName="Gendarme.Rules.Maintainability.RemoveDependenceOnObsoleteCodeRule">
  <TypeSignature Language="C#" Value="public class RemoveDependenceOnObsoleteCodeRule : Gendarme.Framework.Rule, Gendarme.Framework.IMethodRule, Gendarme.Framework.ITypeRule" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit RemoveDependenceOnObsoleteCodeRule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IMethodRule, class Gendarme.Framework.IRule, class Gendarme.Framework.ITypeRule" />
  <AssemblyInfo>
    <AssemblyName>Gendarme.Rules.Maintainability</AssemblyName>
    <AssemblyVersion>2.11.0.0</AssemblyVersion>
  </AssemblyInfo>
  <Base>
    <BaseTypeName>Gendarme.Framework.Rule</BaseTypeName>
  </Base>
  <Interfaces>
    <Interface>
      <InterfaceName>Gendarme.Framework.IMethodRule</InterfaceName>
    </Interface>
    <Interface>
      <InterfaceName>Gendarme.Framework.ITypeRule</InterfaceName>
    </Interface>
  </Interfaces>
  <Attributes>
    <Attribute>
      <AttributeName>Gendarme.Framework.EngineDependency(typeof(Gendarme.Framework.Engines.OpCodeEngine))</AttributeName>
    </Attribute>
    <Attribute>
      <AttributeName>Gendarme.Framework.Problem("This type or method is not obsolete but depends on code decorated with [Obsolete] attribute.")</AttributeName>
    </Attribute>
    <Attribute>
      <AttributeName>Gendarme.Framework.Solution("Remove the dependence on obsolete code or decorate this code with the [Obsolete] attribute.")</AttributeName>
    </Attribute>
  </Attributes>
  <Docs>
    <summary>
            This rule will warn you if your code depends on (e.g. inherit, implement, call...)
            code that is decorated with the <c>[Obsolete]</c> attribute.
            Note that the rule does not report <c>[Obsolete]</c> types, methods...
            but only their use by your code.
            </summary>
    <remarks>This rule is available since Gendarme 2.8</remarks>
    <example>
            Bad example:
            <code>
            [Obsolete ("Limited to In32.MaxValue, use new Int64 ReportAll method")]
            abstract int Report (IList list);
            abstract long ReportAll (IList list);
            public int GetCount ()
            {
            	// this method is not ok since it use an obsolete method
            	return Report (list);
            }
            </code></example>
    <example>
            Good example (dependency removed):
            <code>
            [Obsolete ("Limited to In32.MaxValue, use new Int64 ReportAll method")]
            abstract int Report (IList list);
            abstract long ReportAll (IList list);
            // this method is correct but this changed the public API
            public long GetCount ()
            {
            	return ReportAll (list);
            }
            </code></example>
    <example>
            Good example (decorated as [Obsolete]):
            <code>
            [Obsolete ("Limited to In32.MaxValue, use new Int64 ReportAll method")]
            abstract int Report (IList list);
            abstract long ReportAll (IList list);
            [Obsolete ("Limited to In32.MaxValue, use new Int64 GetLongCount method")]
            public int GetCount ()
            {
            	// this method is now correct since it is decorated with [Obsolete]
            	return Report (list);
            }
            public long GetLongCount ()
            {
            	return ReportAll (list);
            }
            </code></example>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public RemoveDependenceOnObsoleteCodeRule ();" />
      <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="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>
