public static Hashtable MNWSAnyGameItemToDictionary(MNWSAnyGameItem srcObject) { Hashtable result = new Hashtable(9); result["DeveloperId"] = srcObject.DeveloperId; result["GameDesc"] = srcObject.GameDesc; result["GameFlags"] = srcObject.GameFlags; result["GameGenreId"] = srcObject.GameGenreId; result["GameIconUrl"] = srcObject.GameIconUrl; result["GameId"] = srcObject.GameId; result["GameName"] = srcObject.GameName; result["GamePlayModel"] = srcObject.GamePlayModel; result["GameStatus"] = srcObject.GameStatus; return result; }
public static MNWSAnyGameItem MNWSAnyGameItemFromDictionary(IDictionary deserializedObject) { if (deserializedObject == null) { return null; } MNWSAnyGameItem typedResult = new MNWSAnyGameItem(); typedResult.DeveloperId = ((deserializedObject["DeveloperId"] == null) ? null : (long?)Convert.ToInt64(deserializedObject["DeveloperId"])); typedResult.GameDesc = (string)deserializedObject["GameDesc"]; typedResult.GameFlags = ((deserializedObject["GameFlags"] == null) ? null : (long?)Convert.ToInt64(deserializedObject["GameFlags"])); typedResult.GameGenreId = ((deserializedObject["GameGenreId"] == null) ? null : (int?)Convert.ToInt32(deserializedObject["GameGenreId"])); typedResult.GameIconUrl = (string)deserializedObject["GameIconUrl"]; typedResult.GameId = ((deserializedObject["GameId"] == null) ? null : (int?)Convert.ToInt32(deserializedObject["GameId"])); typedResult.GameName = (string)deserializedObject["GameName"]; typedResult.GamePlayModel = ((deserializedObject["GamePlayModel"] == null) ? null : (int?)Convert.ToInt32(deserializedObject["GamePlayModel"])); typedResult.GameStatus = ((deserializedObject["GameStatus"] == null) ? null : (int?)Convert.ToInt32(deserializedObject["GameStatus"])); return typedResult; }