/// <summary> /// Removes a dependent child object from this WriteLock. /// </summary> /// <param name="child">The child.</param> public void RemoveChild(WriteLock child) { m_children.Remove(child); }
/// <summary> /// Creates a new instance of the <see cref="T:WriteProtectionViolationException"/> class. /// </summary> /// <param name="target">The target - the object that received the attempt to change its value.</param> /// <param name="writeLock">The write lock that is watching that target.</param> public WriteProtectionViolationException(object target, WriteLock writeLock) : base("Attempted write protection violation in " + target + (writeLock.WhereApplied != null?". WriteLock applied at : \r\n" + writeLock.WhereApplied:".")) { Target = target; }
/// <summary> /// Adds a dependent child object to this WriteLock. /// </summary> /// <param name="child">The child.</param> public void AddChild(WriteLock child) { m_children.Add(child); }