c# array using methods code example Example: c# array float[] array = new float[] { 1f, 5f, 4f, 3f };