﻿<?xml version="1.0" encoding="utf-8"?><Type Name="AvoidInt64ArgumentsInComVisibleMethodsRule" FullName="Gendarme.Rules.Interoperability.Com.AvoidInt64ArgumentsInComVisibleMethodsRule"><TypeSignature Language="C#" Value="public class AvoidInt64ArgumentsInComVisibleMethodsRule : Gendarme.Framework.Rule, Gendarme.Framework.IMethodRule" /><TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit AvoidInt64ArgumentsInComVisibleMethodsRule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IMethodRule, class Gendarme.Framework.IRule" /><AssemblyInfo><AssemblyName>Gendarme.Rules.Interoperability.Com</AssemblyName><AssemblyVersion>4.2.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>Gendarme.Framework.Rule</BaseTypeName></Base><Interfaces><Interface><InterfaceName>Gendarme.Framework.IMethodRule</InterfaceName></Interface></Interfaces><Attributes><Attribute><AttributeName>Gendarme.Framework.FxCopCompatibility("Microsoft.Interoperability", "CA1406:AvoidInt64ArgumentsForVB6Clients")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Problem("ComVisible method takes Int64 argument which is not usable from VB6 clients")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Solution("Change argument type (e.g. to the System.Int32 or System.Decimal), or mark the method with [ComVisible (false)]")</AttributeName></Attribute></Attributes><Docs><summary>
             This rule checks that ComVisible methods do not take System.Int64 arguments
             because Visual Basic 6 clients do not support it.
             </summary><remarks>
             Rule applies only when the containing assembly has ComVisible attribute explicitly set to false 
             and the type has ComVisible attribute explicitly set to true.
             </remarks><example>
             Bad example:
             <code>
             [assembly: ComVisible (false)]
             namespace InteropLibrary {
            	[ComVisible (true)]
            	public class Bad {
            		public void DoBadThings (long a)
            		{
            			// doing bad things
            		}
            	}
             }
             </code></example><example>
             Good example (type changed):
             <code>
             [assembly: ComVisible (false)]
             namespace InteropLibrary {
            	[ComVisible (true)]
            	public class Good {
            		public void DoGoodThings (int a)
            		{
            			// doing good things
            		}
            	}
             }
             </code></example><example>
             Good example (method is not visible from COM):
             <code>
             [assembly: ComVisible (false)]
             namespace InteropLibrary {
            	[ComVisible (true)]
            	public class Good {
            		[ComVisible (false)]
            		public void DoGoodThings (long a)
            		{
            			// doing good things
            		}
            	}
             }
             </code></example></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public AvoidInt64ArgumentsInComVisibleMethodsRule ();" /><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="CheckMethod"><MemberSignature Language="C#" Value="public Gendarme.Framework.RuleResult CheckMethod (Mono.Cecil.MethodDefinition method);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype Gendarme.Framework.RuleResult CheckMethod(class Mono.Cecil.MethodDefinition method) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.2.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>Gendarme.Framework.RuleResult</ReturnType></ReturnValue><Parameters><Parameter Name="method" Type="Mono.Cecil.MethodDefinition" /></Parameters><Docs><param name="method">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks></Docs></Member></Members></Type>