CPF/CPF.Windows/Json/Formatter/Deserializer/JObject.cs
2023-11-21 23:05:03 +08:00

19 lines
944 B
C#

using System;
using System.Collections.Generic;
namespace CPF.Windows.Json
{
/// <summary>
/// Json Object
/// </summary>
public class JObject : Dictionary<string, object>
{
public object this[int index] { get { return base[index.ToString()]; }set { base[index.ToString()] = value; } }
public object this[long index] { get { return base[index.ToString()]; } set { base[index.ToString()] = value; } }
public object this[Guid index] { get { return base[index.ToString()]; } set { base[index.ToString()] = value; } }
public object this[DateTime index] { get { return base[index.ToString()]; } set { base[index.ToString()] = value; } }
public object this[float index] { get { return base[index.ToString()]; } set { base[index.ToString()] = value; } }
public object this[double index] { get { return base[index.ToString()]; } set { base[index.ToString()] = value; } }
}
}