Convert Method to Expression-Bodied Format with CaseId
This Visual Studio 2022 extension helps developers quickly convert C# method signatures into a simplified expression-bodied format with an additional short caseId parameter.
With a simple keyboard shortcut, you can:
Instantly transform any method signature at the cursor location or selected text
Add short caseId as the first argument
Remove the access modifier and return type from the expression body
Generate a call to RevieDB[caseId].MethodName(...) using the original arguments
Example
Before:
public DataTable GetUserData(int userId, string applicationName)
After:
public DataTable GetUserData(short caseId, int userId, string applicationName) => RevieDB[caseId].GetUserData(userId, applicationName);