﻿<?xml version="1.0" encoding="utf-8"?><Type Name="AvoidUnsealedConcreteAttributesRule" FullName="Gendarme.Rules.Performance.AvoidUnsealedConcreteAttributesRule"><TypeSignature Language="C#" Value="public class AvoidUnsealedConcreteAttributesRule : Gendarme.Framework.Rule, Gendarme.Framework.ITypeRule" /><TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit AvoidUnsealedConcreteAttributesRule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IRule, class Gendarme.Framework.ITypeRule" /><AssemblyInfo><AssemblyName>Gendarme.Rules.Performance</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.Performance", "CA1813:AvoidUnsealedAttributes")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Problem("Because of performance issues, concrete attributes should be sealed.")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Solution("Unless you plan to inherit from this attribute you should consider sealing it.")</AttributeName></Attribute></Attributes><Docs><summary>
             This rule fires if an attribute is defined which is both concrete (i.e. not abstract)
             and unsealed. This is a performance problem because it means that 
             <c>System.Attribute.GetCustomAttribute</c> has to search the attribute type
             hierarchy for derived types. To fix this either seal the type or make it abstract. 
             </summary><remarks>Before Gendarme 2.0 this rule was named AvoidUnsealedAttributesRule.</remarks><example>
             Bad example:
             <code>
             [AttributeUsage (AttributeTargets.All)]
             public class BadAttribute : Attribute {
             }
             </code></example><example>
             Good example (sealed):
             <code>
             [AttributeUsage (AttributeTargets.All)]
             public sealed class SealedAttribute : Attribute {
             }
             </code></example><example>
             Good example (abstract and sealed):
             <code>
             [AttributeUsage (AttributeTargets.All)]
             public abstract class AbstractAttribute : Attribute {
             }
             
             [AttributeUsage (AttributeTargets.All)]
             public sealed class ConcreteAttribute : AbstractAttribute {
             }
             </code></example></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public AvoidUnsealedConcreteAttributesRule ();" /><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>