Пример #1
0
 public DataNodeCollection(DataNode owner, DataNodeCollection nodes)
     : this(owner)
 {
     foreach (DataNode node in nodes)
     {
         node.ParentNode = _owner;
         _values.Add(node);
         _idsValues.Add(node.Id, node);
         _namesValues.Add(node.Name.ToLower(), node);
     }
 }
Пример #2
0
 internal void LoadChildNodes()
 {
     if (_childNodes != null)
     {
         return;
     }
     lock (this)
     {
         if (_childNodes != null)
         {
             return;
         }
         try
         {
             _childNodes = new DataNodeCollection(this, MetadataManager.GetChildNodes(_id));
         }
         catch
         {
             _childNodes = null;
             throw;
         }
     }
 }