defining vectors in c#

C#
            var v1 = Vector.Create<double>(5);
Source

Also in C#: