internal void InvokeOnError(object o, StreamingContext context, ErrorContext errorContext) { if (OnError != null) OnError.Invoke(o, new object[] {context, errorContext}); }
/// <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; }