﻿<?xml version="1.0" encoding="utf-8"?><Type Name="AvoidUnsealedUninheritedInternalTypeRule" FullName="Gendarme.Rules.Performance.AvoidUnsealedUninheritedInternalTypeRule"><TypeSignature Language="C#" Value="public class AvoidUnsealedUninheritedInternalTypeRule : Gendarme.Framework.Rule, Gendarme.Framework.ITypeRule" /><TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit AvoidUnsealedUninheritedInternalTypeRule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IRule, class Gendarme.Framework.ITypeRule" /><AssemblyInfo><AssemblyName>Gendarme.Rules.Performance</AssemblyName><AssemblyVersion>4.2.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.Problem("Due to performance issues, types which are not visible outside of the assembly and which have no derived types should be sealed.")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Solution("You should seal this type, unless you plan to inherit from this type in the near-future.")</AttributeName></Attribute></Attributes><Docs><summary>
             This rule will fire for classes which are internal to the assembly and have no derived
             classes, but are not <c>sealed</c>. Sealing the type clarifies the type hierarchy and
             allows the compiler/JIT to perform optimizations such as eliding virtual method calls.
             </summary><remarks>This rule is available since Gendarme 2.0 and, before 2.2, was named AvoidUnsealedUninheritedInternalClassesRule</remarks><example>
             Bad example:
             <code>
             // this one is correct since MyInheritedStuff inherits from this class
             internal class MyBaseStuff {
             }
             
             // this one is bad, since no other class inherit from MyConcreteStuff
             internal class MyInheritedStuff : MyBaseStuff {
             }
             </code></example><example>
             Good example:
             <code>
             // this one is correct since the class is abstract
             internal abstract class MyAbstractStuff {
             }
             
             // this one is correct since the class is sealed
             internal sealed class MyConcreteStuff : MyAbstractStuff {
             }
             </code></example></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public AvoidUnsealedUninheritedInternalTypeRule ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.2.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>4.2.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>