I am trying to create a class from given method and use the method param as class properties.
public void MethodName(string param1, string param2)
{
// ...
}
I need a snippet or any extension that can convert above code as:
public class MethodNameRequest
{
public string param1 { get; set; }
public string param2 { get; set; }
}
public void MethodName(MethodNameRequest methodNameRequest)
{
// ...
}
Any help is appreciated.
Thank you
