Vb.net-misc-operators
提供:Dev Guides
VB.Net-その他のオペレーター
VB.Netでサポートされている他の重要な演算子はほとんどありません。
Operator | Description | Example |
---|---|---|
AddressOf | Returns the address of a procedure. | |
Await | It is applied to an operand in an asynchronous method or lambda expression to suspend execution of the method until the awaited task completes. | |
GetType | It returns a Type object for the specified type. The Type object provides information about the type such as its properties, methods, and events. | |
Function Expression | It declares the parameters and code that define a function lambda expression. | |
If | It uses short-circuit evaluation to conditionally return one of two values. The If operator can be called with three arguments or with two arguments. |
例
次の例は、これらの演算子の一部を示しています-
上記のコードをコンパイルして実行すると、次の結果が生成されます-