DEV Community

Абдумомин
Абдумомин

Posted on

Trim();

Trim(); metodi string boshidagi va oxirida bo'sh joylar yoki ko'rsatilgan boshqa belgilarda tozalash uchun ishlatiladi> Bu foydalanuvhci kiritgan ma'lumotlarni tozalashda juda qo'l keladi.

string matn = " Salom, Dunyo! ";
string Rematn = metn.Trim();

Shunday metod orqali parametr berib, qaysi belgilarni o'chirishni ko'rsatish ham mumkin.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more