﻿<?xml version="1.0" encoding="utf-8"?><Type Name="AvoidNonPublicFieldsInComVisibleValueTypesRule" FullName="Gendarme.Rules.Interoperability.Com.AvoidNonPublicFieldsInComVisibleValueTypesRule"><TypeSignature Language="C#" Value="public class AvoidNonPublicFieldsInComVisibleValueTypesRule : Gendarme.Framework.Rule, Gendarme.Framework.ITypeRule" /><TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit AvoidNonPublicFieldsInComVisibleValueTypesRule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IRule, class Gendarme.Framework.ITypeRule" /><AssemblyInfo><AssemblyName>Gendarme.Rules.Interoperability.Com</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.Interoperability", "CA1413:AvoidNonpublicFieldsInComVisibleValueTypes")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Problem("ComVisible value types which contain non-public fields will have such fields exposed to COM clients.")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Solution("Review fields for sensitive information, and either make the type a reference type, or remove the ComVisibleAttribute from the type")</AttributeName></Attribute></Attributes><Docs><summary>
             This rule checks for ComVisible value types which contain fields that are non-public.
             </summary><remarks>To be added.</remarks><example>
             Bad example:
             <code>
             [assembly: ComVisible (false)]
             namespace InteropLibrary {
            	[ComVisible (true)]
            	public struct BadStruct {
            		internal int SomeValue;
            	}
             }
             </code></example><example>
             Good example:
             <code>
             [assembly: ComVisible (false)]
             namespace InteropLibrary {
            	[ComVisible (true)]
            	public struct BadStruct {
            		public int SomeValue;
            	}
             }
             </code></example></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public AvoidNonPublicFieldsInComVisibleValueTypesRule ();" /><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>