Adding a List of Car Schema to ItemList's ItemListElement property give implicit type convert error #140
Unanswered
naveadkazi
asked this question in
Q&A
Replies: 2 comments
-
See the unit tests for an example: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the example. This solved the issue. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I am trying to create a schema for a list of cars. To achieve this, I am trying to add a List to an ItemList.ItemListElement object. This giving following error
Cannot implicitly convert type 'System.Collections.Generic.List<Schema.NET.Car>' to 'Schema.NET.Values<Schema.NET.IListItem, string, Schema.NET.IThing>'
Below is the code
Did i miss something here?
Schema Objects
Which schema.org object is this about if any?
https://schema.org/Car
https://schema.org/ItemList
Beta Was this translation helpful? Give feedback.
All reactions