﻿<?xml version="1.0" encoding="utf-8"?><Type Name="VariableNamesShouldNotMatchFieldNamesRule" FullName="Gendarme.Rules.Maintainability.VariableNamesShouldNotMatchFieldNamesRule"><TypeSignature Language="C#" Value="public class VariableNamesShouldNotMatchFieldNamesRule : Gendarme.Framework.Rule, Gendarme.Framework.ITypeRule" /><TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit VariableNamesShouldNotMatchFieldNamesRule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IRule, class Gendarme.Framework.ITypeRule" /><AssemblyInfo><AssemblyName>Gendarme.Rules.Maintainability</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.Maintainability", "CA1500:VariableNamesShouldNotMatchFieldNames")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Problem("An instance method declares a parameter or a local variable whose name matches an instance field of the declaring type.")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Solution("Rename the variable/parameter or the field.")</AttributeName></Attribute></Attributes><Docs><summary>
            This rule checks for local variables or parameters whose names match (case sensitive) an instance field name.
            Note that variable names can only be verified when debugging symbols (pdb or mdb) are available.
            </summary><remarks>To be added.</remarks><example>
            Bad example:
            <code>
            	public class Bad {
            		public int value;
            		public void DoSomething (int value)
            		{
            			// without 'this.' the field will never be set
            			this.value = value;
            		}
            	}
            </code></example><example>
            Good example:
            <code>
            	public class Good {
            		public int value;
            		public void DoSomething (int integralValue)
            		{
            			value = integralValue;
            		}
            	}
            </code></example></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public VariableNamesShouldNotMatchFieldNamesRule ();" /><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>