title: CA2000 Microsoft Reliability
body: <pre><code>       Warning CA2000 : Microsoft.Reliability : In method 'ProtocolHelper&lt;TClass, TClassType&gt;.ProcessApplicanceData(object)', call System.IDisposable.Dispose on object '&lt;&gt;g__initLocal5' before all references to it are out of scope.
  </code></pre>
  
  <p>Below is the code and above is the warning I got.</p>
  
  <pre><code> public WCFServiceClient(Callback callback, WDaaSAuthMode authMode)
      : base()
  {
      AuthMode = authMode;
      CallbackInstance = callback;
  }
  public T Client
  {
      get
      {
          if (_client == null)
          {
              channelFactory = new DuplexChannelFactory&lt;T&gt;(CallbackInstance, EndPoint);
  
                  return CreateClient();
  
          }
          return _client;
      }
  }
  public Callback CallbackInstance { get; set; }
  </code></pre>
  
  <p>}</p>
  
  <p>I got this above warning in many cases like that. I tried "using" and "try, finally" but nothing solved my problem. Could anyone help me in resolving this. Thanks in advance. </p>