Project

Profile

Help

Bug #4296

closed

XdmEnumerator on .NET

Added by Michael Kay about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
.NET API
Sprint/Milestone:
-
Start date:
2019-08-23
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.9, trunk
Fix Committed on Branch:
9.9, trunk
Fixed in Maintenance Release:
Platforms:

Description

See also issue #4290.

The ExtensionFunctionDefinition/ExtensionFunctionCall inferface on .NET requires user-written code to return an IXdmEnumerator. However, we do not provide any useful ways of constructing an IXdmEnumerator; we have implementations of this interface, but with the exception of EmptyEnumerator, they are not exposed.

It would be useful (for starters) if XdmValue.Enumerate() returned an IXdmEnumerator rather than its superclass, IEnumerator<XdmItem>. Alternatively we could relax the definition of ExtensionFunctionCall.Call() so it is allowed to return any IEnumerator<XdmItem>, not necessarily an IXdmEnumerator.

Please register to edit this issue

Also available in: Atom PDF