Examining Visual Basic .NET's Operators
Simply having a variable with some value in it is not very interesting. Typically, we'd like to be able to perform some sort of operation on that variable or on multiple variables in tandem. For example, in mathematics there are numbers and operators. Numbers are things like 4, 17.5, pi, and so on, whereas operators are things like negate, add, subtract, divide, and so on.
Many of the traditional mathematical operators are operators in Visual Basic .NET. For example, to add together two numeric variables in VB.NET, the + operator is used. To multiply two numeric variables, the * operator is used.
There are different classes of operators, the most important being arithmetic operators, comparison operators, ...
Get SAMS Teach Yourself ASP.NET in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.