C# json序列化与反序列化
摘要:json中很多时候跟网络交互都会使用json的数据格式,那么之间的转换就经常用到序列化、反序列化等 反序列化例子: 关键类:JavaScriptSerializer js = new JavaScriptSerializer(); 自定义的数据类:jsonVale vaule = new jsonV
阅读全文
posted @
2017-05-18 16:15
FEX-x
阅读(355)
推荐(0)
c# 统计集合中的个数
摘要:var query = from p in firstball group p by p into g select new { g, num = g.Count() }; string str=""; foreach( var s in query) { str+=s.g.Key+":"+s.nu
阅读全文
posted @
2016-12-04 13:32
FEX-x
阅读(361)
推荐(0)
关于MatchTimeoutInMilliseconds没有声明定义错误
摘要:环境:Silverlight+RIA +win7 SP1+vs2012 +vs2015(安装了2012以及2015) 报错:在项目.g.cs 自动文件中会提示说MatchTimeoutInMilliseconds没有声明定义错误 在没有安装vs2015之前可以,没有错误,但是安装vs2015后就开始
阅读全文
posted @
2016-06-01 20:12
FEX-x
阅读(540)
推荐(0)
C#调用office文档显示在webbrowser控件中
摘要:public bool OpenOffice(WebBrowser webbrowser, string filename) { string a = webbrowser.ReadyState.ToString(); try ...
阅读全文
posted @
2015-09-11 16:58
FEX-x
阅读(1006)
推荐(0)
按钮单击显示contextMenuStrip菜单
摘要:效果图:由于经常用到该功能,准备一个类://传入两个控件public void DropMenu(ContextMenuStrip contextMenuStrip,Button button) {int x = 0; int y = button.Top; ...
阅读全文
posted @
2015-09-11 16:38
FEX-x
阅读(210)
推荐(0)