WELCOME

a:hover { cursor:url(https://files.cnblogs.com/files/laoguantongxiegogo/click_24px_1231393_easyicon.net.ico),auto; } body { cursor:url(https://files.cnblogs.com/files/laoguantongxiegogo/pointer_24px_1231389_easyicon.net.ico),auto; }

WPF之类型转换器

    [TypeConverter(typeof(HumanTypeConvert))]
    public class model
    {
        public string id { get; set; }
        public model Name { get; set; }
    }

    public class HumanTypeConvert : TypeConverter
    {
        public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
        {
            if (value is string)
            {
                model h = new model();
                h.id = value as string;
                return h;
            }
            return base.ConvertFrom(context, culture, value);
        }
    }
posted @ 2021-10-10 23:53  waiting233  阅读(125)  评论(0)    收藏  举报
#Snow{ position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; background: rgba(125,137,95,0.1); pointer-events: none; }