Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyGetException"/> class.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="targetProperty">The targetProperty.</param>
 /// <param name="innerException">The inner exception.</param>
 public PropertyGetException(string message, PropertyReference targetProperty, Exception innerException)
     : base(message, innerException)
 {
     _targetProperty = targetProperty;
 }
Пример #2
0
 /// <summary>
 /// Because this class is sealed, this constructor is private.
 /// if this class is not sealed, this constructor should be protected.
 /// </summary>
 private PropertyGetException(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     _targetProperty = info.GetValue("TargetProperty", typeof(PropertyReference)) as PropertyReference;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyGetException"/> class.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="targetProperty">The targetProperty.</param>
 public PropertyGetException(string message, PropertyReference targetProperty) : base(message)
 {
     _targetProperty = targetProperty;
 }