Reset1()method doesnt use anything that is listed in the article given by @jspuij which would 100% prevent the JIT from inlining it.
When I try .Net6 it does not like below, ApplyHighDpiModeEventArgs and ApplyHighDpiMode are not found
Private Sub MyApplication_ApplyHighDpiMode(sender As Object, e As My.ApplyHighDpiModeEventArgs) Handles Me.ApplyHighDpiMode e.HighDpiMode = HighDpiMode.PerMonitorV2 End Sub
I don't see anything about WinForms in the what's new or any breaking changes
AA\((.+?)\)to get the text inside the parenthesis after AA in
AA()-AB(text2)then the regex matches the whole string and i get
)-AB(text2extracted out. how can i get an empty result if there is no text in the parenthesis after AA?
@isobel-cullen - If they're not, you have a pretty dangerous race condition.
ValueTask is mutable, more or less, but callers aren't supposed to muck with it (and are supposed to ignore it after successfully awaiting it, so don't have to deal with other modifications anyways).