<Type Name="MainShouldNotBePublicRule" FullName="Gendarme.Rules.Design.MainShouldNotBePublicRule">
  <TypeSignature Language="C#" Value="public class MainShouldNotBePublicRule : Gendarme.Framework.Rule, Gendarme.Framework.IAssemblyRule" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit MainShouldNotBePublicRule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IAssemblyRule, class Gendarme.Framework.IRule" />
  <AssemblyInfo>
    <AssemblyName>Gendarme.Rules.Design</AssemblyName>
    <AssemblyVersion>2.11.0.0</AssemblyVersion>
  </AssemblyInfo>
  <Base>
    <BaseTypeName>Gendarme.Framework.Rule</BaseTypeName>
  </Base>
  <Interfaces>
    <Interface>
      <InterfaceName>Gendarme.Framework.IAssemblyRule</InterfaceName>
    </Interface>
  </Interfaces>
  <Attributes>
    <Attribute>
      <AttributeName>Gendarme.Framework.Problem("The entry point (Main) of this assembly is visible to the outside world (ref: C# Programming Guide).")</AttributeName>
    </Attribute>
    <Attribute>
      <AttributeName>Gendarme.Framework.Solution("Reduce the visibility of the method or type if your language allows it. It may not be possible in some language, like VB.NET).")</AttributeName>
    </Attribute>
  </Attributes>
  <Docs>
    <summary>
            This rule fires if an assembly's entry point (typically named <c>Main</c>) is visible
            to other assemblies. It is better to make this method private so that only the CLR
            can call the method.
            </summary>
    <remarks>To be added.</remarks>
    <example>
            Bad example:
            <code>
            public class MainClass {
            	public void Main ()
            	{
            	}
            }
            </code></example>
    <example>
            Good example (type is not externally visible):
            <code>
            internal class MainClass {
            	public void Main ()
            	{
            	}
            }
            </code></example>
    <example>
            Good example (method is not externally visible):
            <code>
            public class MainClass {
            	internal void Main ()
            	{
            	}
            }
            </code></example>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public MainShouldNotBePublicRule ();" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Parameters />
      <Docs>
        <summary>To be added.</summary>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="CheckAssembly">
      <MemberSignature Language="C#" Value="public Gendarme.Framework.RuleResult CheckAssembly (Mono.Cecil.AssemblyDefinition assembly);" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype Gendarme.Framework.RuleResult CheckAssembly(class Mono.Cecil.AssemblyDefinition assembly) cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>Gendarme.Framework.RuleResult</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="assembly" Type="Mono.Cecil.AssemblyDefinition" />
      </Parameters>
      <Docs>
        <param name="assembly">To be added.</param>
        <summary>To be added.</summary>
        <returns>To be added.</returns>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
  </Members>
</Type>
