Message 1 of 9

Not applicable
08-26-2016
01:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I've encountered a problem when I'm trying to store an array of string to a field in a schema using ExtensibleStorage. It throws an InvalidOperationExcpetion on myEntity.Set(myFieldName, myStringArray) saying "Unsupported type: System.String[]"
Pseudocode:
var schemaBuilder = new SchemaBuilder(myGuid); schemaBuilder.AddArrayField("myFieldName", typeof(string)); var mySchema = schemaBuilder.Finish(); var myField = mySchema.GetField("myFieldName"); var myEntity = newEntity(mySchema); myEntity.Set(myField, new string[] {"string1", "string2"}); //throws InvalidOperationException: Unsupported type: System.String[]"
Any one have an idea of what I'm doing wrong?
Cheers,
Eirik
Solved! Go to Solution.