-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
As suggested by @asbjornu, it will be good to give users an option to define @type using an attribute. Of course multiple would have to be allowed.
[Type("http://schema.org/Person")]
[Type("foaf:Person")]
public class Person
{
}It would be equivalent to the current:
public class Person
{
public string[] Type => new string[]
{
"http://schema.org/Person",
"foaf:Person"
}
}asbjornu
Metadata
Metadata
Assignees
Labels
No labels