Replies: 1 comment
-
Hello @nooelan You can provide your custom Note: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My model contains data that are multi-dimensional, and my first attempt was to implement this as a regular C# multidimensional array similar to this:
object[,] matrix3x3 = new object[3,3];
When trying to access this type of object from a template, Handlebars.Net threw an exception complaining it could not convert from object[ , ] to object[].
Then I changed my model implementation to jagged arrays (similar to this):
This works just fine with Handlebars.Net.
Question: Is the lack of support for regular multidimensional arrays intentional, or is it a missing feature or bug?
As regular, multidimensional arrays are more efficient, at least for 2D arrays according to C# guidelines, I think it is a good idea to add support for it. It will also help avoid having to change the implementation of an already existing model.
Beta Was this translation helpful? Give feedback.
All reactions