mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-19 16:06:35 +08:00
支持动画使用不同的形状
This commit is contained in:
@@ -70,6 +70,16 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
return JsonConvert.SerializeObject(obj);
|
||||
}
|
||||
|
||||
public static T ToObject<T>(this string str)
|
||||
{
|
||||
return JsonConvert.DeserializeObject<T>(str);
|
||||
}
|
||||
|
||||
public static object ToObject(this string str, Type type)
|
||||
{
|
||||
return JsonConvert.DeserializeObject(str, type);
|
||||
}
|
||||
|
||||
public static JsonSerializerSettings Settings { get; set; } = new JsonSerializerSettings
|
||||
{
|
||||
DateFormatString = "yyyy-MM-dd HH:mm:ss.fff",
|
||||
|
||||
Reference in New Issue
Block a user