Share via


Operators Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Provides late-bound math operators, such as AddObject and CompareObject, which the Visual Basic compiler uses internally.

Inheritance Hierarchy

System.Object
  Microsoft.VisualBasic.CompilerServices.Operators

Namespace:  Microsoft.VisualBasic.CompilerServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

Syntax

'Declaration
Public NotInheritable Class Operators
public sealed class Operators

The Operators type exposes the following members.

Methods

  Name Description
Public methodStatic member AddObject Infrastructure. Represents the Visual Basic addition (+) operator.
Public methodStatic member AndObject Infrastructure. Represents the Visual Basic And operator.
Public methodStatic member CompareObject Infrastructure. Represents Visual Basic comparison operators.
Public methodStatic member CompareObjectEqual Infrastructure. Represents the Visual Basic equal (=) operator.
Public methodStatic member CompareObjectGreater Infrastructure. Represents the Visual Basic greater-than (>) operator.
Public methodStatic member CompareObjectGreaterEqual Infrastructure. Represents the Visual Basic greater-than or equal-to (>=) operator.
Public methodStatic member CompareObjectLess Infrastructure. Represents the Visual Basic less-than (<) operator.
Public methodStatic member CompareObjectLessEqual Infrastructure. Represents the Visual Basic less-than or equal-to (<=) operator.
Public methodStatic member CompareObjectNotEqual Infrastructure. Represents the Visual Basic not-equal (<>) operator.
Public methodStatic member CompareString Infrastructure. Performs binary or text string comparison when given two strings.
Public methodStatic member ConcatenateObject Infrastructure. Represents the Visual Basic concatenation (&) operator.
Public methodStatic member ConditionalCompareObjectEqual Infrastructure. Represents the overloaded Visual Basic equals (=) operator.
Public methodStatic member ConditionalCompareObjectGreater Infrastructure. Represents the overloaded Visual Basic greater-than (>) operator.
Public methodStatic member ConditionalCompareObjectGreaterEqual Infrastructure. Represents the overloaded Visual Basic greater-than or equal-to (>=) operator.
Public methodStatic member ConditionalCompareObjectLess Infrastructure. Represents the overloaded Visual Basic less-than (<) operator.
Public methodStatic member ConditionalCompareObjectLessEqual Infrastructure. Represents the overloaded Visual Basic less-than or equal-to (<=) operator.
Public methodStatic member ConditionalCompareObjectNotEqual Infrastructure. Represents the overloaded Visual Basic not-equal (<>) operator.
Public methodStatic member DivideObject Infrastructure. Represents the Visual Basic division (/) operator.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodStatic member ExponentObject Infrastructure. Represents the Visual Basic exponent (^) operator.
Public methodStatic member FallbackInvokeUserDefinedOperator Obsolete. Executes a late-bound evaluation of a user-defined operator. This helper method is not meant to be called directly from your code.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member IntDivideObject Infrastructure. Represents the Visual Basic integer division (\) operator.
Public methodStatic member LeftShiftObject Infrastructure. Represents the Visual Basic arithmetic left shift (<<) operator.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member ModObject Infrastructure. Represents the Visual Basic Mod operator.
Public methodStatic member MultiplyObject Infrastructure. Represents the Visual Basic multiply (*) operator.
Public methodStatic member NegateObject Infrastructure. Represents the Visual Basic unary minus (–) operator.
Public methodStatic member NotObject Infrastructure. Represents the Visual Basic Not operator.
Public methodStatic member OrObject Infrastructure. Represents the Visual Basic Or operator.
Public methodStatic member PlusObject Infrastructure. Represents the Visual Basic unary plus (+) operator.
Public methodStatic member RightShiftObject Infrastructure. Represents the Visual Basic arithmetic right shift (>>) operator.
Public methodStatic member SubtractObject Infrastructure. Represents the Visual Basic subtraction (–) operator.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public methodStatic member XorObject Infrastructure. Represents the Visual Basic Xor operator.

Top

Remarks

This class supports the Visual Basic compiler and is not intended to be used directly from your code.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.