public virtual void GetObjectData(SerializationInfo info, StreamingContext context) { if (info == null) { throw new ArgumentNullException(nameof(info)); } ExceptionSerializer.GetObjectData(this, info, context); }
public virtual void GetObjectData(SerializationInfo info, StreamingContext context) { if (info == null) { throw new ArgumentNullException(nameof(info)); } ExceptionSerializer.GetObjectData(this, info, context); info.AddValue("ParamName", _paramName, typeof(string)); }
/// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo"/> with information about /// the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> that holds /// the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that /// contains contextual information about the source or destination. </param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info"/> argument is null.</exception> public void GetObjectData(SerializationInfo info, StreamingContext context) { if (info == null) { throw new ArgumentNullException(nameof(info)); } ExceptionSerializer.GetObjectData(this, info, context); Exception[] innerExceptions = new Exception[m_innerExceptions.Count]; m_innerExceptions.CopyTo(innerExceptions, 0); info.AddValue("InnerExceptions", innerExceptions, typeof(Exception[])); }
public void GetObjectData(SerializationInfo info, StreamingContext context) { ExceptionSerializer.GetObjectData(this, info, context); }