I was explaining at some point that string is an immutable type. That means that once you assign a value to a string variable, you cannot directly modify it anymore. This also means that any string operation using any function such as Trim(), Replace(), ToUpper(), etc, will actually create a new string in memory where the resulting value will be stored, and it will delete the old, initial value. … Read more
Posts Tagged ‘concatenator operator’
String Builder
Friday, April 21st, 2017Concatenation
Friday, April 21st, 2017Since now we know the fundamentals about strings and their structure, it is time to learn about the various operations we can perform on them. The simplest of these operation is concatenation, or joining two or more strings together and obtaining a new string as a result.… Read more
Concatenator operator
Friday, January 6th, 2017Though we already used the concatenator operator quite a few times, we did not explain it yet. The concatenator operator (+) is used to join values of type string together.
As a side note, it is not necessary for both operands to be of type string.… Read more