Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <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;
 }
Пример #3
0
 /// <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);
 }