Compile-time error when not returning from a method, but not from another dev environment
<p>In my home development environment, if I don't specify the return variable of a method which returns a value, this is a compile-time error.</p>

<p>However, at work (where I guess Visual Studio settings may differ), the code will still compile fine in this situation.</p>

<p>E.g.</p>

<pre><code>string EditString(string s);
</code></pre>

<p>In my code I can write this (At work):</p>

<pre><code>EditString("string here");
</code></pre>

<p>As you can see, I don't write string s = EditString("..."); But that won't compile at home.</p>

<p>From this method, I would have to write:</p>

<pre><code>string s = EditString("abc");
</code></pre>

<p>If I don't specify explicitly the return variable, what effect does this have on the compiler? (I assume the compiler will automatically just do the assignment)? Where can I check this setting that causes an error if I don't return from a method call?</p>

<p>Thanks</p>
