﻿<?xml version="1.0" encoding="utf-8"?><Type Name="DoNotIgnoreMethodResultRule" FullName="Gendarme.Rules.Performance.DoNotIgnoreMethodResultRule"><TypeSignature Language="C#" Value="public class DoNotIgnoreMethodResultRule : Gendarme.Framework.Rule, Gendarme.Framework.IMethodRule" /><TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit DoNotIgnoreMethodResultRule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IMethodRule, class Gendarme.Framework.IRule" /><AssemblyInfo><AssemblyName>Gendarme.Rules.Performance</AssemblyName><AssemblyVersion>3.10.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.EngineDependency(typeof(Gendarme.Framework.Engines.OpCodeEngine))</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.FxCopCompatibility("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Problem("The method ignores the result value from a method call.")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Solution("Don't ignore the result value.")</AttributeName></Attribute></Attributes><Docs><summary>
            This rule fires if a method is called that returns a new instance but that instance
            is not used. This is a performance problem because it is wasteful to create and
            collect objects which are never actually used. It may also indicate a logic problem.
            Note that this rule currently only checks methods within a small number of System
            types.
            </summary><remarks>To be added.</remarks><example>
            Bad example:
            <code>
            public void GetName ()
            {
            	string name = Console.ReadLine ();
            	// This is a bug: strings are (mostly) immutable so Trim leaves
            	// name untouched and returns a new string.
            	name.Trim ();
            	Console.WriteLine ("Name: {0}", name);
            }
            </code></example><example>
            Good example:
            <code>
            public void GetName ()
            {
            	string name = Console.ReadLine ();
            	name = name.Trim ();
            	Console.WriteLine ("Name: {0}", name);
            }
            </code></example></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public DoNotIgnoreMethodResultRule ();" /><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="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>3.10.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>