AddDynamicProperty() private method

private AddDynamicProperty ( IDynamicProperty prop ) : bool
prop IDynamicProperty
return bool
 private bool AddPerContextDynamicProperty(IDynamicProperty prop)
 {
     if (_dphCtx == null)
     {
         DynamicPropertyHolder dph = new DynamicPropertyHolder();
         lock (this)
         {
             if (_dphCtx == null)
             {
                 _dphCtx = dph;
             }
         }
     }
     return(_dphCtx.AddDynamicProperty(prop));
 }
 private static bool AddGlobalDynamicProperty(IDynamicProperty prop)
 {
     return(_dphGlobal.AddDynamicProperty(prop));
 }