﻿<?xml version="1.0" encoding="utf-8"?><Type Name="DoNotDeclareProtectedMembersInSealedTypeRule" FullName="Gendarme.Rules.Design.DoNotDeclareProtectedMembersInSealedTypeRule"><TypeSignature Language="C#" Value="public class DoNotDeclareProtectedMembersInSealedTypeRule : Gendarme.Framework.Rule, Gendarme.Framework.ITypeRule" /><TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit DoNotDeclareProtectedMembersInSealedTypeRule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IRule, class Gendarme.Framework.ITypeRule" /><AssemblyInfo><AssemblyName>Gendarme.Rules.Design</AssemblyName><AssemblyVersion>3.10.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", "CA1047:DoNotDeclareProtectedMembersInSealedTypes")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Problem("This sealed type contains family (protected in C#) fields and/or methods.")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Solution("Change the access to private to make it clear that the type is not intended to be subclassed.")</AttributeName></Attribute></Attributes><Docs><summary>
            This rule ensures that <c>sealed</c> types (i.e. types that you can't inherit from)
            do not define family (<c>protected</c> in C#) fields or methods. Instead make the
            member private so that its accessibility is not misleading.
            </summary><remarks>Prior to Gendarme 2.2 this rule applied only to fields and was named DoNotDeclareProtectedFieldsInSealedClassRule</remarks><example>
            Bad example (field):
            <code>
            public sealed class MyClass {
            	protected int someValue;
            }
            </code></example><example>
            Bad example (method):
            <code>
            public sealed class MyClass {
            	protected int GetAnswer ()
            	{
            		return 42;
            	}
            }
            </code></example><example>
            Good example (field):
            <code>
            public sealed class MyClass {
            	private int someValue;
            }
            </code></example><example>
            Good example (method):
            <code>
            public sealed class MyClass {
            	private int GetAnswer ()
            	{
            		return 42;
            	}
            }
            </code></example></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public DoNotDeclareProtectedMembersInSealedTypeRule ();" /><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="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>3.10.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>