i need someone who good at reflection in c# i have a piece of code that need to convert it to reflection, code that you need to convert is as follow, i will provide you with a VM to connect to so that you can work on it, you cannot copy the code into your PC, that is all the code i need to work on
var apiDescription = new ApiDescription() {
ActionDescriptor = new ControllerActionDescriptor
{
ControllerTypeInfo = [login to view URL](),
MethodInfo = typeof(CustomController).GetMethod(nameof([login to view URL])),
AttributeRouteInfo = new AttributeRouteInfo
{
Template = "api/test/{id}",
},
ControllerName = [login to view URL],
ActionName = "Find",
},
HttpMethod = "Get",
RelativePath = "api/test/{id}",
ParameterDescriptions =
{
new ApiParameterDescription
{
Name = "id",
Source = [login to view URL],
Type = typeof(int),
},
},
SupportedResponseTypes =
{
new ApiResponseType
{
Type = typeof(TestModel),
StatusCode = 200,
}
},
};