29 lines
387 B
C#
29 lines
387 B
C#
|
using System;
|
|||
|
namespace sharp.json
|
|||
|
{
|
|||
|
public static class JSONSerializer
|
|||
|
{
|
|||
|
|
|||
|
public static void Apply(JSON json,Object o){
|
|||
|
Type t = o.GetType();
|
|||
|
|
|||
|
if (t.IsPrimitive){
|
|||
|
ApplyPrimitive(json,o);
|
|||
|
} else {
|
|||
|
ApplyClass(json, o);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public static void ApplyPrimitive(JSON json,Object o){
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
public static void ApplyClass(JSON json,Object o){
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
}
|