Interfaces

This commit is contained in:
ahmed committed 2024-11-11 17:26:15 +03:00
1 parent 44943b23b0
commit 0c335c6023
6 files changed
+24 -1

No files matched your search

+2
View File
@@ -217,6 +217,8 @@ namespace Esiur.Data
return new RepresentationType(RepresentationTypeIdentifier.Resource, nullable);
else if (type == typeof(IRecord) || type == typeof(Record))
return new RepresentationType(RepresentationTypeIdentifier.Record, nullable);
else if (type.IsInterface)
return null; // other interfaces are not supported
else if (type == typeof(Map<object, object>))
return new RepresentationType(RepresentationTypeIdentifier.Map, nullable);
else if (Codec.ImplementsInterface(type, typeof(IResource)))