﻿<?xml version="1.0" encoding="utf-8"?><Type Name="DoNotDecreaseVisibilityRule" FullName="Gendarme.Rules.BadPractice.DoNotDecreaseVisibilityRule"><TypeSignature Language="C#" Value="public class DoNotDecreaseVisibilityRule : Gendarme.Framework.Rule, Gendarme.Framework.IMethodRule" /><TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit DoNotDecreaseVisibilityRule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IMethodRule, class Gendarme.Framework.IRule" /><AssemblyInfo><AssemblyName>Gendarme.Rules.BadPractice</AssemblyName><AssemblyVersion>3.10.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.FxCopCompatibility("Microsoft.Usage", "CA2222:DoNotDecreaseInheritedMemberVisibility")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Problem("A private method is hiding a visible method from a base type")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Solution("Either seal the inherited type or rename/remove the private method.")</AttributeName></Attribute></Attributes><Docs><summary>
            The rule detect when a method visibility is decreased in an inherited type.
            Decreasing visibility does not prevent calling the base class method unless
            the type is <c>sealed</c>. Note that some language (but not C#) will allow
            you to seal, e.g. <c>final</c>, the method without an <c>override</c>.
            </summary><remarks>To be added.</remarks><example>
            Bad example:
            <code>
            public class Base {
            	public void Public ()
            	{
            	}
            }
            public class BadInheritor : Base {
            	private new void Public ()
            	{
            	}
            }
            </code></example><example>
            Good example (do not hide):
            <code>
            public class Inheritor : Base {
            }
            </code></example><example>
            Good example (sealed type):
            <code>
            public sealed class Inheritor : Base {
            	private new void Public ()
            	{
            	}
            }
            </code></example></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public DoNotDecreaseVisibilityRule ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>3.10.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>3.10.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></Members></Type>