title: Inline conditional c# - next best solution?
body: <p>It seems the compiler is not going let this syntax fly.</p>
  
  <pre><code>void main()
  {
    foo(false?0:"");
  }
  
  void foo(int i) {return;}
  void foo(string s) {return;}
  </code></pre>
  
  <p>The only other way I can see of fixing this is something as follows:</p>
  
  <pre><code>void bar(object o) 
  {
   if (o is string){//do this}
   else{//im an int, do this}
  }
  </code></pre>
  
  <p>Anyone have any better ideas?</p>