摘要:
使用Json来保存一个过滤条件,想着下次软件打开的时候,加载原来的过滤条件。 遇到的问题是,序列化的时候,信息保存下来了,是正常的。 但下次软件重新打开,反序列化的时候,反序列解析结果异常,里面的属性都是null。 先让大家看一下我的配置信息类: public class FilterInfo { 阅读全文
摘要:
CustomFontManagerImpl代码: using System.Collections.Generic; using System.Globalization; using System.Linq; using Avalonia.Media; using Avalonia.Media.F 阅读全文
摘要:
约束 说明 where T:struct 对于结构约束,类型T必须是值类型 where T:class 类约束指定类型T必须是引用类型 where T:IFoo 指定类型T必须实现接口IFoo where T:Foo 指定类型T必须派生自基类Foo where T:new() 这是一个构造函数约束, 阅读全文