title: How to return an array literal in C#
body: <p>I'm trying the following code. The line with the error is pointed out.</p>
  
  <pre><code>int[] myfunction()
  {
      {
        //regular code
      }
      catch (Exception ex)
      {                    
         return {0,0,0}; //gives error
      }
  }
  </code></pre>
  
  <p>How can I return an array literal like string literals?</p>