You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue with string.Contains for a specific character string.
Detailed repro steps so we can see the same problem
conststringC9PatternMainStyle="<<Main>$>g__";stringmtName="<<Main>$>g__MethodCalbackTest|0_3";if(mtName.Contains(C9PatternMainStyle)){// We should arrive here but Contains doesn't find it!}
Notes:
Works: mtName.Contains("Main>$>"))
Does not work: mtName.Contains("<<Main"))
Other suggested things
Expected behaviour
Sample Project
Screenshot
Additional context
I've made an effort to fix the bug
The text was updated successfully, but these errors were encountered:
Our API currently has no Contains(...) and friends. We should look into adding these.
Most of them can (are) pure C# code, so they won't "cost" anything in native size increase.
Details about Problem
nanoFramework area: C# code
VS version: (2017 | 2019 )
VS extension version:
Target:
Device capabilities output:
Description
Issue with string.Contains for a specific character string.
Detailed repro steps so we can see the same problem
Notes:
mtName.Contains("Main>$>"))
mtName.Contains("<<Main"))
Other suggested things
Expected behaviour
Sample Project
Screenshot
Additional context
I've made an effort to fix the bug
The text was updated successfully, but these errors were encountered: