internal void InvokeOnError(object o, StreamingContext context, ErrorContext errorContext) { if (_onErrorCallbacks != null) { foreach (SerializationErrorCallback callback in _onErrorCallbacks) { callback(o, context, errorContext); } } }
internal void OnErrorMethod(StreamingContext context, ErrorContext errorContext) { Member5 = "Error message for member " + errorContext.Member + " = " + errorContext.Error.Message; errorContext.Handled = true; }
internal void OnDerivedErrorMethod(StreamingContext context, ErrorContext errorContext) { }
internal void OnError(StreamingContext context, ErrorContext errorContext) { errorContext.Handled = true; }
internal void OnError(StreamingContext context, ErrorContext errorContext) { }
private void OnError(StreamingContext context, ErrorContext error) { Identifier = 25; // Here we could for example manually copy the // persisted "Id" value into the renamed "Identifier" // property, etc. error.Handled = true; // We never get here :( Console.WriteLine("Error has been fixed"); }