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
At present, FormatWith supports basic property navigations in parameter keys. However, it does not support combining this with indexers to navigate into objects arrays, lists, or dictionaries.
For example, this is currently supported:
string result = "{foo.bar}".FormatWith(new
{
foo = new { bar = "test" }
});
However, we should be able to do this:
string result = "{foo[\"bar\"].Length}".FormatWith(new
{
foo = new Dictionary<string, string> { ["bar"] = "test" }
});
At present,
FormatWith
supports basic property navigations in parameter keys. However, it does not support combining this with indexers to navigate into objects arrays, lists, or dictionaries.For example, this is currently supported:
However, we should be able to do this:
This is the code that will need to be changed:
FormatWith/FormatWith/Internal/FormatWithMethods.cs
Lines 320 to 361 in 3fbb5ee
The text was updated successfully, but these errors were encountered: