Пример #1
0
        public ISerializator this[string subkey]
        {
            get
            {
                string newSubkey = string.Empty;
                // if cache does not contains subkey then create a new subkey
                if (m_subkeys.Contains(subkey) == false)
                {
                    newSubkey = CreateXPathSubkey(subkey);
                    if (subkey == null || subkey.Trim().Length == 0)
                    {
                        m_subkeys[subkey] = this;
                    }
                    else
                    {
                        m_subkeys[subkey] = new XMLSerialize(m_document, newSubkey);
                    }
                }

                return(( ISerializator )m_subkeys[subkey]);
            }
        }
Пример #2
0
    public ISerializator this[ string subkey ]
    {
      get
      {
        string newSubkey = string.Empty;
        // if cache does not contains subkey then create a new subkey
        if( m_subkeys.Contains( subkey ) == false )
        {
          newSubkey = CreateXPathSubkey( subkey );
          if( subkey == null || subkey.Trim().Length == 0 )
            m_subkeys[ subkey ] = this;
          else
            m_subkeys[ subkey ] = new XMLSerialize( m_document, newSubkey );
        }

        return ( ISerializator )m_subkeys[ subkey ];
      }
    }