private void SetPropertyValueAndRemoveFromList(List <PropertyLink> propertyLinks, string propertyName, string expession) { var propertyLink = PullPropertyLink(propertyLinks, propertyName); var value = preProcessor.ExecuteAsync <object>(expession).Result; var propertyValue = Convert.ChangeType(value, propertyLink.PropertyInfo.PropertyType); propertyLink.Value = propertyValue; }
public async Task <T> ExecuteAsync <T>() { return(await preProcessor.ExecuteAsync <T>(text)); }