I recently upgraded from VS2005 to VS2010. In my .Net 2.0 code, I referenced Microsoft.VisualBasic.dll and used the StringType.StrLike method to perform glob string comparisons. I just noticed that according to MSDN StringType is deprecated. Is there a replacement for the Like operator in VS2010 / .Net 4.0?
Microsoft.VisualBasic.dll
glob
Try using LikeOperator .
LikeOperator
using Microsoft.VisualBasic.CompilerServices; ... if (LikeOperator.LikeString(left, right, CompareMethod.Text)) { ... }
Your link says that StrLike is for the compiler infrastructure only, and you should just use the Like statement, which doesn't mention obsolescence. Do you use Like or use StrLike?
Source: https://habr.com/ru/post/1347270/More articles:ServletContext.log () does not register - loggingsort multiple items at once using jquery.ui.sortable - jquery-ui-sortableIs it possible (and / or a good idea) to reuse OAuth tokens between applications? - authenticationUnique Rails Search Results - ruby-on-railsiPhone: memory management questions - memory-managementHow to convert an alphanumeric (reference) number containing a decimal point for a string in mathematics - wolfram-mathematicaGetting data from Unbound Service in Android - androidremainder of integer division by 0 - integerFirefox gBrowser.selectedBrowser ID - firefoxIs there a way in C # to call a method only once, like in jQuery a βoneβ method? - c #All Articles