GetResolutionScope() 공개 정적인 메소드

public static GetResolutionScope ( ITypeReference value ) : string
value ITypeReference
리턴 string
예제 #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();
        }