INamespaceDefinition

Topics: Metadata Model
Nov 14, 2009 at 8:47 AM

Hello.

Is there a helper method to get the full name of a namespace from a namespace definition?

For "full name" here I mean a string containing also the names of the contaiing namespaces up to the root namespace.

I can only find a property to reach the root namespace (but then I would try and find the path to the given namespace) and these methods in TypeHelper:

public static string GetNamespaceName(IUnitSetNamespace namespaceDefinition, NameFormattingOptions formattingOptions);
public static string GetNamespaceName(IUnitNamespaceReference namespaceReference, NameFormattingOptions formattingOptions);

but they work on IUnitNamespaceReference or IUnitSetNamespace not on a INamespaceDefinition.

Thanks!

 

Coordinator
Nov 14, 2009 at 5:45 PM

Not yet. I'll add one.

Coordinator
Nov 14, 2009 at 5:46 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.