Beispiel #1
0
 public DataPropertyCollection(DataNode owner, DataPropertyCollection properties)
 {
     this._owner = owner;
     _values     = new Dictionary <int, DataProperty>();
     if (properties == null)
     {
         return;
     }
     foreach (DataProperty property in properties)
     {
         _values.Add(property.PropertyType, property);
     }
 }
Beispiel #2
0
 protected void LoadProperties()
 {
     if (_properties != null)
     {
         return;
     }
     lock (this)
     {
         if (_properties != null)
         {
             return;
         }
         try
         {
             _properties = new DataPropertyCollection(this);
         }
         catch
         {
             _properties = null;
             throw;
         }
     }
 }