Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>VB.NET +*</strong><br> VB.NET sees operator <code>+</code> as an arithmatic operator, try to add one number to another number. If one operand is a number, it converts the other operand to a number (but only if <code>Option Explicit</code> is <code>On</code>). Only if both operands are strings, those strings will be concatinated.</p> <p>See: <a href="http://msdn.microsoft.com/en-US/library/9c5t70w2%28v=vs.80%29.aspx">http://msdn.microsoft.com/en-US/library/9c5t70w2%28v=vs.80%29.aspx</a></p> <p><strong>VB.NET &amp;*</strong><br> VB.NET sees operator <code>&amp;</code> as an operator to concatinate strings. If one operand is a string, it converts the other operand to a string.</p> <p>See: <a href="http://msdn.microsoft.com/en-US/library/wfx50zyk(v=vs.80).aspx">http://msdn.microsoft.com/en-US/library/wfx50zyk(v=vs.80).aspx</a></p> <p><strong>C#.NET +*</strong><br> C#.NET sees operator <code>+</code>, depending on the datatypes, as an arithmatic operator of concatination operator. If one operand is a string, it converts the other operand to a string.</p> <p>See: <a href="http://msdn.microsoft.com/en-us/library/k1a63xkz(v=vs.71).aspx">http://msdn.microsoft.com/en-us/library/k1a63xkz(v=vs.71).aspx</a></p> <p>So knowing this, it is logical that the VB.NET operator + is converted into methods to convert the operands to numbers.</p> <p>To see all differences between the language, see: <a href="http://www.harding.edu/fmccown/vbnet_csharp_comparison.html">http://www.harding.edu/fmccown/vbnet_csharp_comparison.html</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload