protected DLL_LOAD_ERROR(SerializationInfo info, StreamingContext context) { JavaScriptSerializer ser = new JavaScriptSerializer(); var json_e = info.GetString("err_code"); var json_m = info.GetString("message"); err_code = ser.Deserialize <DLL_ERR_CODE>(json_e); message = ser.Deserialize <string>(json_m); }
/// <summary> /// コンストラクタ /// </summary> /// <param name="err_c">エラーコード</param> /// <param name="message">エラーメッセージ</param> public DLL_LOAD_ERROR(DLL_ERR_CODE err_c, string message) { this.err_code = err_c; this.message = message; }
/// <summary> ///コンストラクタ /// </summary> public DLL_LOAD_ERROR() { err_code = DLL_ERR_CODE.NO_ERROR; message = "success"; }