Add the patterns to the find and replace dialog in Visual Studio for ultimate win. Replace in entire solution for more ultimate win.
#Matching pattern
_?ModelFactory\.Create<([a-z]+)>\((_?[a-z]+\.?[a-z]+?)\)
#Replacement pattern
$2.As<$1>()
Add the patterns to the find and replace dialog in Visual Studio for ultimate win. Replace in entire solution for more ultimate win.
#Matching pattern
_?ModelFactory\.Create<([a-z]+)>\((_?[a-z]+\.?[a-z]+?)\)
#Replacement pattern
$2.As<$1>()
I have no idea what this is but i'm so gonna try it!
nice 😄