... and how to express them in VL.
Legend
- not-supported This keyword does not have an equivalent in vl. If you find it necessary to use its functionality, you can still write C# code that can be used in vl, see Writing Nodes in C#.
- no-inheritance VL does not support class inheritance and therefore also not the concept that comes with this keyword.
abstract class Foo
{
abstract public int Bar();
}
{no-inheritance}
object foo = 1;
var foo = foo as int;
Use the CastAs node.
C# Reference
{no-inheritance}
for (int i = 0; i < 10; i++)
{
if (i % 2 == 0)
break;
Console.Beep();
}
See Special Loop Pins for how to use a Break output, to break out of a loop in vl.
C# Reference
See switch
C# Reference
See try
C# Reference
{not-supported}
C# Reference
See Datatype Patch.
C# Reference
{not-supported}
C# Reference
{not-supported}
C# Reference
See switch
C# Reference
See Delegates.
C# Reference
See while
C# Reference
Called Float64 in vl, part of category Primitives.
Note
Only showing in the nodebrowser, if the Advanced aspect is activated.
C# Reference
See if
enum Alignment {Left, Middle, Right};
While existing enums can certainly be used in VL, one thing you cannot yet do in VL, is define a custom enum. If you need a custom enum, for now you'll have to define it using C# code. See Writing Nodes in C# for how to do this.
C# Reference
Instead of events, VL uses a similar concept called Observables. See Reactive for details.
C# Reference
{not-supported}
C# Reference
{not-supported}
C# Reference
See try
C# Reference
{not-supported}
C# Reference
Called Float32 in vl, part of category Primitives.
C# Reference
See Loops.
C# Reference
See Loops.
C# Reference
{not-supported}
C# Reference
See Conditions.
C# Reference
{not-supported}
C# Reference
{not-supported}
C# Reference
Called Integer32 in vl, part of category Primitives.
See Interfaces.
C# Reference
{not-supported}
C# Reference
{not-supported}
C# Reference
Called Integer64 in vl, part of category Primitives.
Note
Only showing in the nodebrowser, if the Advanced aspect is activated.
C# Reference
The concept of a namespace is called Category in VL.
var date = new DateTime(2002, 12, 24);
The new keyword denotes a constructor, meaning the operation that creates a new instance of a object. In VL all constructors of classes and records are called Create.
The equivalent of creating an instance of the DateTime class, in VL looks like this:name:
Part of the category Primitive.Object
Note
Only showing in the nodebrowser, if the Advanced aspect is activated.
C# Reference
{no-inheritance}
{no-inheritance}
C# Reference
{not-supported}
C# Reference
Called Integer8 in vl, part of category Primitives.
Note
Only showing in the nodebrowser, if the Advanced aspect is activated.
C# Reference
{not-supported}
C# Reference
Called Integer16 in vl, part of category Primitives.
Note
Only showing in the nodebrowser, if the Advanced aspect is activated.
C# Reference
{not-supported}
C# Reference
{not-supported}
C# Reference
VL does not have a switch statement yet. See Conditions for workarounds.
See Exception Handling.
C# Reference
Called Integer32 (Unsigned) in vl, part of category Primitives.
Note
Only showing in the nodebrowser, if the Advanced aspect is activated.
C# Reference
Called Integer64 (Unsigned) in vl, part of category Primitives.
Note
Only showing in the nodebrowser, if the Advanced aspect is activated.
C# Reference
{not-supported}
C# Reference
{not-supported}
C# Reference
Called Integer16 (Unsigned) in vl, part of category Primitives.
Note
Only showing in the nodebrowser, if the Advanced aspect is activated.
C# Reference
{no-inheritance}
C# Reference
{not-supported}
C# Reference
VL doesn't have a while loop yet. See Loops for an easy workaround.