FindPrefix() private method

private FindPrefix ( string nspace, string &prefix ) : bool
nspace string
prefix string
return bool
Ejemplo n.º 1
0
        internal string GetPrefixForNamespace(string nspace)
        {
            string?prefix = null;

            if (_scopeManager.FindPrefix(nspace, out prefix))
            {
                Debug.Assert(prefix != null && prefix.Length > 0);
                return(prefix);
            }
            else
            {
                return(DeclareNewNamespace(nspace));
            }
        }