/// <summary>
 /// Initializes a failure result
 /// </summary>
 /// <param name="originalObject">the object that tried to be serialized</param>
 /// <param name="ex">the exception thrown during serialization</para>
 private SerializationResult(object originalObject, Exception ex, Type t)
 {
     this.Success          = false;
     this.FailureException = ex;
     this.SerializedValue  = new SerializedValue(t, String.Empty);
 }
 /// <summary>
 /// Initialize a successful result
 /// </summary>
 /// <param name="originalObject">the object that was serialized</param>
 /// <param name="result">the result of the serialization</param>
 private SerializationResult(object originalObject, string result, Type t)
 {
     this.Success          = true;
     this.FailureException = null;
     this.SerializedValue  = new SerializedValue(t, result);
 }