# Reverse

**Reverse** methodi ma’lumotlar tartibini teskarisiga o’zgartirish uchun ishlatiladi.

Method syntax:

```csharp
class Program
{
    static void Main(string[] args)
    {
            List<int> numbers = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
            var MethodSytax = numbers.Reverse<int>();
            foreach (var num in MethodSytax)
            {
                Console.WriteLine(num);
            }
            // Output: 10 9 8 7 6 5 4 3 2 1
    }
}
```

Query syntax:

```csharp
class Program
{
    static void Main(string[] args)
    {
            List<int> numbers = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
            var QuerySyntax = (from num in numbers
                              select num).Reverse<int>();
            foreach (var num in QuerySyntax)
            {
                Console.WriteLine(num);
            }
            // Output: 10 9 8 7 6 5 4 3 2 1
    }
}
```


---

# 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/reverse.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.
