# Skip

Skip() methodi [Take()](https://docs.dot-net.uz/c-.net/linq/bolim-operatorlari/take) methodini teskarisi hisoblanadi. Demak Take() qanchadir elementni bizga olib berardi Skip() esa shuncha elementni tashlab qolganlarini bizga qaytarib beradi. Endi sodda qilib tushuntiraman Diqqat qiling!!!\
&#x20;Take() bizga bir nechta elementni olib berarmidi. Endi bizga o’sha olgan elementlaridan keyin to’plamda qolgan elementlarni Skip() olib beradi.\
&#x20;Buni misolda kursayiz yanada yaxshiroq tushuncha olasiz.

```csharp
class Program
{
    static void Main(string[] args)
    {
        List<int> sonlar = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

            // Boshidagi 4 ta elementidan tashqari elemenlarini olamiz
            List<int> yangisonlar = sonlar.Skip(4).ToList();

            //Ekranga chiqaramiz
            Console.WriteLine("Boshlangich elementlar:");
           foreach(var i in sonlar)
            {
                Console.Write(i + " ");
            }

            Console.WriteLine("\nQolgan  elementlar:");
            foreach (var i in yangisonlar)
            {
                Console.Write(i + " ");

           }


                Console.ReadKey();


    }
}
```

Bu dasturni albatta ishlatib kuring!!!\
&#x20;Endi sizda shunday muammolar yuzaga keladigan bulsa bemalol hijolat bulmasdan Skip() ga murojat qilishingiz mumkin.\
&#x20;Shu bilan Skip() methodi mavzuyimiz ham o’z nihoyasiga yetdi.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dot-net.uz/c-.net/linq/bolim-operatorlari/skip.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
