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)

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

👋 Kindness is contagious

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

Okay