define a vector c#

C#
Vector vector1 = new Vector(20, 30, 40);
Source

Also in C#: