When calling OwnedCollection on a custom collection, I get the following error:
GraphDiff requires the collection to be either IEnumerable or T[]
The custom collection is something like:
classFooCollection:List<Foo>
The error seems to from this code:
CollectionGraphNodeprivate Type GetCollectionElementType(){if(Accessor.PropertyType.IsArray){returnAccessor.PropertyType.GetElementType();}if(Accessor.PropertyType.IsGenericType){returnAccessor.PropertyType.GetGenericArguments()[0];}thrownewInvalidOperationException("GraphDiff requires the collection to be either IEnumerable<T> or T[]");}Is there a workaround for this?
When calling OwnedCollection on a custom collection, I get the following error:
GraphDiff requires the collection to be either IEnumerable or T[]
The custom collection is something like:
The error seems to from this code:
Is there a workaround for this?