title: Ambiguity between methods
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8303969/how-to-eliminate-warning-about-ambiguity">How to eliminate warning about ambiguity?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm working with MS Office Word in my application,using the following code:</p>
  
  <pre><code>var wordApplication = new Microsoft.Office.Interop.Word.Application();
  var wordDoc = wordApplication.Documents.Open(ref fileName);
  
  //do it.. 
  </code></pre>
  
  <p>the call of:</p>
  
  <pre><code>wordDoc.Close();
  wordApplication.Quit();
  </code></pre>
  
  <p>give an:</p>
  
  <blockquote>
    <p>Ambiguity between method 'Microsoft.Office.Interop.Word._Application.Quit(
    ref object, ref object, ref object)' and non-method
    'Microsoft.Office.Interop.Word.ApplicationEvents4_Event.Quit'. Using method group.</p>
  </blockquote>
  
  <p>I tried to set requests arguments:</p>
  
  <pre><code>object nullObject = Type.Missing;
  wordDoc.Close(ref nullObject, ref nullObject, ref nullObject);
  wordApplication.Quit(ref nullObject, ref nullObject, ref nullObject);
  </code></pre>
  
  <p>but it gives same error. How to fix this? Thanks in advance!</p>