I don't get why tempList is empty. We are removing item from villaList, but before removing we put the item in tempList. So how does tempList become empty?
@sprite7393 Жыл бұрын
Because this is how object references work: when you write var tempList = GetVillas(), you create a templist pointer that points to the same object as villaList. If you want to point to another object, you have to write `var tempList = new List` and add villas to it. Also notice, that it works with reference types (objects). Value types like int or struct work in other way.
@amangupta-zg2yr7 ай бұрын
@@sprite7393 Great explanation, Thanks for that
@godfather7695 Жыл бұрын
And there is no savechanges🤔
@DotNetMastery Жыл бұрын
we are not saving anything to the database in the example. A use case would be modifying something only for UI purpose in a list!
@RakeshKumar-rn1ok Жыл бұрын
sir can we get 3 or 4 hour interview questions videos. please 😊
@shabanelmogy7912 Жыл бұрын
We Want Course (Maui Xaml - Maui Blazor) Thanks For Excelllent Content