Table of Contents

C# Keywords

... 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

C# Reference

abstract class Foo
{
  abstract public int Bar();
}

{no-inheritance}

as

C# Reference

object foo = 1;
var foo = foo as int;

Use the CastAs node.

base

C# Reference
{no-inheritance}

break

C# Reference

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.

case

C# Reference
See switch

catch

C# Reference
See try

checked

C# Reference
{not-supported}

class

C# Reference
See Datatype Patch.

const

C# Reference
{not-supported}

continue

C# Reference
{not-supported}

decimal

C# Reference

default

C# Reference
See switch

delegate

C# Reference
See Delegates.

do

C# Reference
See while

double

C# Reference
Called Float64 in vl, part of category Primitives.

Note

Only showing in the nodebrowser, if the Advanced aspect is activated.

else

C# Reference
See if

enum

C# Reference

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.

event

C# Reference
Instead of events, VL uses a similar concept called Observables. See Reactive for details.

explicit

C# Reference
{not-supported}

extern

C# Reference
{not-supported}

finally

C# Reference
See try

fixed

C# Reference
{not-supported}

float

C# Reference
Called Float32 in vl, part of category Primitives.

for

C# Reference
See Loops.

foreach

C# Reference
See Loops.

goto

C# Reference
{not-supported}

if

C# Reference
See Conditions.

implicit

C# Reference
{not-supported}

in

C# Reference
{not-supported}

int

C# Reference
Called Integer32 in vl, part of category Primitives.

interface

C# Reference

See Interfaces.

internal

C# Reference

is

C# Reference
{not-supported}

lock

C# Reference
{not-supported}

long

C# Reference
Called Integer64 in vl, part of category Primitives.

Note

Only showing in the nodebrowser, if the Advanced aspect is activated.

namespace

C# Reference
The concept of a namespace is called Category in VL.

new

C# Reference

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:

null

C# Reference

Part of the category Primitive.Object

Note

Only showing in the nodebrowser, if the Advanced aspect is activated.

operator

C# Reference

out

C# Reference

override

C# Reference
{no-inheritance}

params

C# Reference

private

C# Reference

protected

C# Reference

{no-inheritance}

public

C# Reference

readonly

C# Reference
{not-supported}

ref

C# Reference

return

C# Reference

sbyte

C# Reference
Called Integer8 in vl, part of category Primitives.

Note

Only showing in the nodebrowser, if the Advanced aspect is activated.

sealed

C# Reference
{not-supported}

short

C# Reference
Called Integer16 in vl, part of category Primitives.

Note

Only showing in the nodebrowser, if the Advanced aspect is activated.

sizeof

C# Reference

stackalloc

C# Reference
{not-supported}

static

C# Reference
{not-supported}

struct

C# Reference

switch

C# Reference
VL does not have a switch statement yet. See Conditions for workarounds.

this

C# Reference

throw

C# Reference

try

C# Reference

See Exception Handling.

typeof

C# Reference

uint

C# Reference
Called Integer32 (Unsigned) in vl, part of category Primitives.

Note

Only showing in the nodebrowser, if the Advanced aspect is activated.

ulong

C# Reference
Called Integer64 (Unsigned) in vl, part of category Primitives.

Note

Only showing in the nodebrowser, if the Advanced aspect is activated.

unchecked

C# Reference
{not-supported}

unsafe

C# Reference
{not-supported}

ushort

C# Reference
Called Integer16 (Unsigned) in vl, part of category Primitives.

Note

Only showing in the nodebrowser, if the Advanced aspect is activated.

using

C# Reference

virtual

C# Reference
{no-inheritance}

void

C# Reference

volatile

C# Reference
{not-supported}

while

C# Reference
VL doesn't have a while loop yet. See Loops for an easy workaround.