Пример #1
0
 /// <summary>
 /// Subclasses can use this method to set or update the TargetObject.
 /// This convenience function doesn't clobber the error record if it
 /// already exists...
 /// </summary>
 /// <param name="targetObject">
 /// per ErrorRecord.TargetObject
 /// </param>
 internal void SetTargetObject(object targetObject)
 {
     _targetObject = targetObject;
     if (_errorRecord != null)
     {
         _errorRecord.SetTargetObject(targetObject);
     }
 }