You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vardynamic=new DynamicParameters(new{ test ="Test"});
Assert.IsTrue(dynamic.ParameterNames.Contains("test"));// fails
Use case
I have a method that accepts two objects and merges them into a single parameter set.
Since AddDynamicParams does not fail if same names exist in both objects, I need a way to check it myself before merging them.
The text was updated successfully, but these errors were encountered:
I'm having the same problem. My use case is similar to the one @ashmind gave. Is there a solution in the works for this, or does anyone know of a workaround?
This is still an issue. I want to be able to iterate through the dynamic parameters for logging purposes, but can't since ParameterNames is always null.
Example
Use case
I have a method that accepts two objects and merges them into a single parameter set.
Since
AddDynamicParams
does not fail if same names exist in both objects, I need a way to check it myself before merging them.The text was updated successfully, but these errors were encountered: