-
-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
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:
class FooCollection : List<Foo>
The error seems to from this code:
CollectionGraphNode
private Type GetCollectionElementType()
{
if (Accessor.PropertyType.IsArray)
{
return Accessor.PropertyType.GetElementType();
}
if (Accessor.PropertyType.IsGenericType)
{
return Accessor.PropertyType.GetGenericArguments()[0];
}
throw new InvalidOperationException("GraphDiff requires the collection to be either IEnumerable<T> or T[]");
}
Is there a workaround for this?
Metadata
Metadata
Assignees
Labels
No labels