public static string GetResolutionScope(ITypeReference value) { IModule module = value.Owner as IModule; if (module != null) { return(value.Namespace); } ITypeDeclaration declaringType = value.Owner as ITypeDeclaration; if (declaringType != null) { return(Helper.GetResolutionScope(declaringType) + "+" + Helper.GetName(declaringType)); } throw new NotSupportedException(); }