locked
Foreach RRS feed

  • Question

  • Why u can use foreach positing data in view , when u need to insert multiple data on array list

    eg Insert multiple Records Using Model Binding in asp net core

    • Edited by Sugwejo Friday, October 26, 2018 7:35 AM
    • Moved by CoolDadTx Friday, October 26, 2018 9:53 PM ASP.NET related
    Friday, October 26, 2018 7:34 AM

All replies

  • Why u can use foreach...

    Because it goest through a collection and executes the code for every item... What do you exectly want to know?
    Friday, October 26, 2018 8:00 AM
  • Hello, 

    Why u can use foreach 

    because there are an implementation of IEnumerable.


    Sincerely, Highly skilled coding monkey.

    Friday, October 26, 2018 8:15 AM
  • Please post questions related to MVC in the ASP.NET forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Friday, October 26, 2018 9:53 PM