title: Returning more than one value from a method in c#
body: <p>I have a question in returning two values from a method.</p>
  
  <p>I have a method from which I have to return two values. I did like this.</p>
  
  <pre><code>public string fileName(string rate,out string xmlName,out string xsdName)
  {
      if(rate=="2013")
      {
         xmlName="abc";
         xsdName="def";
      }
  
      if(rate=="2014")
      {
         xmlName="pqr";
         xsdName="xyz";
      }
  
      //stmt 1 (Here it is asking to give default values for xmlname and xsdName.But i dont want to give any default values.)
  }
  </code></pre>
  
  <p>Now in another class I have to call this function and assign these values of <code>xmlname</code> and <code>xsdName</code> in that class. How can I do this?</p>