Use Array inside Razor Syntax

In this chapter you will learn

  • How to use array inside Razor Syntax
  • Single-Dimensional Array and Multi-Dimensional Array
  • Programming Example

You can use single-dimensional array and multi-dimensional array inside razor syntax as follow





  • Output

    Single Dimensional Array
    1, 3, 5, 7, 11, 13, 17, 19,
    Multi Dimensional Array
    a, b,
    c, d,
    e, f,

    Summary

    In this chapter you learned to use array in razor syntax. In the next chapter you will learn to use Collection inside Razor Syntax.


    Leave a Reply

    Your email address will not be published. Required fields are marked *