EndsWith();

EndsWith(); – bu belgilarni satirning oxiridagi qismini tekshiradi> Agar satr kerakli nelgilarni bilan tugasa, true qaytaradi, aks holda false qaytaradi

string text = “Salom Dunyo”;
bool result = text.EndsWith(“dunyo”);
Console.WriteLine(result);


This content originally appeared on DEV Community and was authored by Абдумомин

EndsWith(); - bu belgilarni satirning oxiridagi qismini tekshiradi> Agar satr kerakli nelgilarni bilan tugasa, true qaytaradi, aks holda false qaytaradi

string text = "Salom Dunyo";
bool result = text.EndsWith("dunyo");
Console.WriteLine(result);

Bu misolda, text.EndsWith("dunyo") so'zi "dunyo" bilan tugaydi, shuning uchun true qaytaradi.


This content originally appeared on DEV Community and was authored by Абдумомин


Print Share Comment Cite Upload Translate Updates
APA

Абдумомин | Sciencx (2025-02-01T04:55:43+00:00) EndsWith();. Retrieved from https://www.scien.cx/2025/02/01/endswith/

MLA
" » EndsWith();." Абдумомин | Sciencx - Saturday February 1, 2025, https://www.scien.cx/2025/02/01/endswith/
HARVARD
Абдумомин | Sciencx Saturday February 1, 2025 » EndsWith();., viewed ,<https://www.scien.cx/2025/02/01/endswith/>
VANCOUVER
Абдумомин | Sciencx - » EndsWith();. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/02/01/endswith/
CHICAGO
" » EndsWith();." Абдумомин | Sciencx - Accessed . https://www.scien.cx/2025/02/01/endswith/
IEEE
" » EndsWith();." Абдумомин | Sciencx [Online]. Available: https://www.scien.cx/2025/02/01/endswith/. [Accessed: ]
rf:citation
» EndsWith(); | Абдумомин | Sciencx | https://www.scien.cx/2025/02/01/endswith/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.