public override string FindNamespaceByPrefix(string prefix)
 {
     for (ObjectWriterFrame frame = this._stack.CurrentFrame; frame.Depth > 0; frame = (ObjectWriterFrame)frame.Previous)
     {
         string str;
         if (frame.TryGetNamespaceByPrefix(prefix, out str))
         {
             return(str);
         }
     }
     return(null);
 }
Пример #2
0
        public override string FindNamespaceByPrefix(string prefix)
        {
            string            xamlNs;
            ObjectWriterFrame frame = _stack.CurrentFrame;

            while (frame.Depth > 0)
            {
                if (frame.TryGetNamespaceByPrefix(prefix, out xamlNs))
                {
                    return(xamlNs);
                }
                frame = (ObjectWriterFrame)frame.Previous;
            }
            return(null);
        }