Closed tomkuijsten closed 8 years ago
Enum seems to have the same problem
I tested this with Enums (as [FromContent] parameter) and that worked fine.
Structs can't have public properties, because "windows runtime" structs can only contain public instance fields, see msdn for more info. My advice... don't use structs as parameter type.
Wiki updated
I tried making a controller parameter a struct, which was not accepted (InvalidOperationException). Should this be a valid scenario?