OrderedDictionary<TKey, TValue> 추가
This commit is contained in:
@@ -4,7 +4,9 @@ using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Collections.Specialized;
|
||||
using System.Linq;
|
||||
using UVC.Extention;
|
||||
using UVC.Log;
|
||||
|
||||
namespace UVC.Data
|
||||
@@ -47,7 +49,7 @@ namespace UVC.Data
|
||||
/// // - password는 제외됨
|
||||
/// </code>
|
||||
/// </example>
|
||||
public class DataObject : SortedDictionary<string, object>, IDataObject
|
||||
public class DataObject : OrderedDictionary<string, object>, IDataObject
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
@@ -103,11 +105,12 @@ namespace UVC.Data
|
||||
/// Dictionary로 데이터 객체를 초기화합니다.
|
||||
/// </summary>
|
||||
/// <param name="dictionary">초기화에 사용할 Dictionary 객체</param>
|
||||
public DataObject(Dictionary<string, object> dictionary) : base(dictionary)
|
||||
public DataObject(Dictionary<string, object> dictionary) : base()
|
||||
{
|
||||
// 생성자에서 초기 속성들을 기존 속성으로 등록
|
||||
foreach (var key in dictionary.Keys)
|
||||
{
|
||||
Add(key, dictionary[key]);
|
||||
existingProperties.Add(key);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user