الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

The String Function "endswith" Is Case-sensitive

بدأه Xlance في 14 أكتوبر 2008 · 3 رد · 1,810 مشاهدة · في قسم تكنولوجيا Microsoft .NET العام
مشاركة: واتساب X فيسبوك تيليجرام
#2

Or even better use:

str.EndsWith("someValue", StringComparison.OrdinalIgnoreCase);

Coding on the Cloud and for the Cloud!

My Blog

#3

لذا يفضل عند البحث أن تحول النص الى جالة الأحرف الكبير ة ثم البحث فيها


Dim returnValue As String

returnValue = instance.ToUpper().EndsWith("ABC")
Dim instance As String

===============================================================

عمر حيدر قعدان

مهندس برمجيات

http://blog.jerashdev.net

#4
omar.qadan كتب:

لذا يفضل عند البحث أن تحول النص الى جالة الأحرف الكبير ة ثم البحث فيها


Dim returnValue As String

returnValue = instance.ToUpper().EndsWith("ABC")
Dim instance As String

ReturnValue As String ?

ReturnValue = Instance.ToUpper.EndsWith( "ABC" )

------------------>

Dim ReturnValue As Boolean = ( Instance.ToUpper.EndsWith( SomeString.ToUpper() ))

The important thing is not so much

that every child should be taught,

as that every child should be given the wish to learn.

مواضيع مشابهة