First off, I would like to say sorry for the phrasing of the question, had no idea how to word it.
The issue that I'm running into is that I need to reference a public decimal by name from a string value.
public decimal **DecimalValue**
{
get => GetProperty<decimal>();
set => SetProperty(value, SomeFunc);
}
The decimal is structured as above. I would then like to reference it in this function:
AddFiveToValue = Resolve<AsyncExecutingParameterCommand<AddingParametersModel>>().WithExecute(parameters =>
{
//In a perfect world, I could approach it as such:
nameof(parameters.Parameter) += parameters.Increment
//The string "parameters.Parameter" contains the string of the name of "**DecimalValue**"
//that I would like to influence
return Task.CompletedTask;
});
All of these can be found within the same class.
Thank you for taking the time to look at my code!