array of number asp net core code example Example: c# array float[] array = new float[] { 1f, 5f, 4f, 3f };