DEV Community

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

Posted on

Contains();

Contains(); - bu metod satrda berilganqism mavjudligini tekshiradi. Agar mavjud bo'lsa, true qaytaradi, aks holda esa false.

strign text = "Salom, dunyo!";
bool result = text.Contaons("dunyo");
Console.WriteLine(result);

Bu misoldam"Salom dunyo!" satrida "dunyo" qismi mavjud, shuning uxhun metrod true qaytaradi.

Top comments (0)

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay