List collection class in C sharp Arabic #74



 List collection class in C sharp Arabic #74

Suggested Videos

List collection class in C sharp Arabic #73

❑ List collection class in C#.



This is collection to part 73 . Please watch part 73 , before proceeding. Contains() function: Checks if an item exists in the list . This method returns true if the items Exists , else false. Exists() function : checks if an item exists in the list based on a condition . This method returns true f the items exists ,else false.

Find() function : searches for an element that matches the conditions defined by the specified lambda expression and returns the first matching item from the first .

FindLast() function: Searches for an element that matches the conditions defined by the specified lambda expression and returns the last matching item from the list.

FindAll() function : Returns all the items from the list that match the conditions specified by the lambda expression.



FindIndex() function: Returns the index of the first item, that matches the condition specified by the lambda expression . There are 2 other overloads of this method which allows us o specify the range of elements to search, with in the list .

FindLastIndex() function : Returns the index of the last item ,that matches the condition specified by the lambda expression .There are 2 other overloads of this method which allows us to specify the range of elements to search , with in the list .

Convert an array to a List – Use ToList () method Convert a list to an array – Use ToArray() method Convert a list to a Dictionary – Use ToDictionary() method

Follow Us

YouTube

 If you want to download pptx : click Telegram

Facebook

Twitter

Instagram

Tik Tok



إرسال تعليق

أحدث أقدم