عنوان:

‫لیستی از نکات مخصوص مهندسین نرم افزار


نویسنده: عثمان رحیمی
تاریخ: ۱۳۹۶/۰۷/۲۹ ۱۳:۱۵
آدرس: www.dntips.ir
myString.Equals("foo", StringComparison.OrdinalIgnoreCase) is faster than myString.ToUpper() == "FOO"
If your language has built-in string support, then it may also have special functions for testing case-insensitive equality. The above is from .Net, and is faster than casting ToUpper() because strings are immutable in .Net and the ToUpper() function will waste time creating a new string 


مشاهده مطلب اصلی