OrderedDictionary<TKey, TValue> 추가

This commit is contained in:
김형인
2025-06-19 23:58:09 +09:00
parent a6ac3e6b78
commit 45c420e54e
18 changed files with 592 additions and 228 deletions

View File

@@ -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);
}
}