public static Hashtable MNErrorInfoToDictionary(MNErrorInfo srcObject) { Hashtable result = new Hashtable(2); result["ActionCode"] = srcObject.ActionCode; result["ErrorMessage"] = srcObject.ErrorMessage; return result; }
public static MNErrorInfo MNErrorInfoFromDictionary(IDictionary deserializedObject) { if (deserializedObject == null) { return null; } MNErrorInfo typedResult = new MNErrorInfo(); typedResult.ActionCode = Convert.ToInt32(deserializedObject["ActionCode"]); typedResult.ErrorMessage = (string)deserializedObject["ErrorMessage"]; return typedResult; }