public void Deserialize(JSON_ChatLog json) { if (json == null) { return; } this.messages.Clear(); this.messages = new List <ChatLogParam>((int)ChatWindow.MAX_CHAT_LOG_ITEM); if (json.messages == null) { return; } this.messages.AddRange((IEnumerable <ChatLogParam>)json.messages); }
public void Deserialize(JSON_ChatLog json) { if (json == null) { return; } this.messages.Clear(); this.messages = new List <ChatLogParam>(30); if (json.messages == null) { return; } this.messages.AddRange((IEnumerable <ChatLogParam>)json.messages); }