﻿<?xml version="1.0" encoding="utf-8"?><Type Name="ExceptionShouldBeVisibleRule" FullName="Gendarme.Rules.Exceptions.ExceptionShouldBeVisibleRule"><TypeSignature Language="C#" Value="public class ExceptionShouldBeVisibleRule : Gendarme.Framework.Rule, Gendarme.Framework.ITypeRule" /><TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ExceptionShouldBeVisibleRule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IRule, class Gendarme.Framework.ITypeRule" /><AssemblyInfo><AssemblyName>Gendarme.Rules.Exceptions</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.FxCopCompatibility("Microsoft.Design", "CA1064:ExceptionsShouldBePublic")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Problem("This exception is not public and its base class does not provide enough information to be useful.")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Solution("Change the exception's visibility to public, inherit from another exception, or ignore the defect.")</AttributeName></Attribute></Attributes><Docs><summary>
             This rule checks for non-visible exceptions which derive directly from
             the most basic exceptions: <c>System.Exception</c>, <c>System.ApplicationException</c>
             or <c>System.SystemException</c>. Those basic exceptions, being visible, will be the 
             only information available to the API consumer - but do not contain enough data to be
             useful.
             </summary><remarks>This rule is available since Gendarme 2.0</remarks><example>
             Bad example:
             <code>
             internal class GeneralException : Exception {
             }
             </code></example><example>
             Good example (visibility):
             <code>
             public class GeneralException : Exception {
             }
             </code></example><example>
             Good example (base class):
             <code>
             internal class GeneralException : ArgumentException {
             }
             </code></example></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public ExceptionShouldBeVisibleRule ();" /><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>