public NodeInfoList EnumerateProductionTrees(NodeType type, Query query)
{
IntPtr resultList;
using (EnumerationErrors errors = new EnumerationErrors())
{
int status = SafeNativeMethods.xnEnumerateProductionTrees(this.InternalObject, type,
query == null ? IntPtr.Zero : query.InternalObject,
out resultList,
errors.InternalObject);
WrapperUtils.CheckEnumeration(status, errors);
}
return new NodeInfoList(resultList);
}