Tuesday, August 7, 2007

Convert ExportedInstance to a class

While busy traversing my domain model I needed some way of converting my ExportedInstance to the actual class I am interrested in.

This article helped in that, but basically all I needed was the following line of code:

EntityPlaceholder entityPlaceholder =
dis.ResolveExportedInstanceInDocument(dslNamespace, MELString, true) as
EntityPlaceholder;

No comments: