Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ErrorEventArgs"/> class.
 /// </summary>
 /// <param name="currentObject">The current object.</param>
 /// <param name="errorContext">The error context.</param>
 public ErrorEventArgs(object currentObject, ErrorContext errorContext)
 {
     CurrentObject = currentObject;
     ErrorContext = errorContext;
 }
Exemplo n.º 2
0
 internal void InvokeOnError(object o, StreamingContext context, ErrorContext errorContext)
 {
     if (_onErrorCallbacks != null)
     {
         foreach (SerializationErrorCallback callback in _onErrorCallbacks)
         {
             callback(o, context, errorContext);
         }
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ErrorEventArgs"/> class.
 /// </summary>
 /// <param name="currentObject">The current object.</param>
 /// <param name="errorContext">The error context.</param>
 public ErrorEventArgs(object currentObject, ErrorContext errorContext)
 {
     CurrentObject = currentObject;
     ErrorContext  = errorContext;
 }