GetResolutionScope() public static method

public static GetResolutionScope ( ITypeReference value ) : string
value ITypeReference
return string
Beispiel #1
0
        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();
        }