-
WebApi(ApiController)强制返回xml或者json 示例
强制某个方法返回xml或者json ,当然也可以强制某个 controller返回xml或json
- 2014-06-12下载
- 积分:1
-
c# 数字转换成 bool类型值 0,1,2,-1 普及下
总结:convert.tobool(0)==false, 非0 则均为true
- 2014-06-27下载
- 积分:1
-
NPOI操作Execel
NPOI操作Execel
- 2013-09-01下载
- 积分:1
-
C# 自动识别文件的编码格式(支持utf-8/gb3212/gbk/ascii等多种格式)
可自动识别以下格式的文件 "GB2312", "GBK", "HZ", "Big5", "CNS 11643", "ISO 2022CN", "UTF-8", "Unicode", "ASCII", "OTHER"
- 2013-12-24下载
- 积分:1
-
动画效果浮动窗体实例
private void StopRectTimer_Tick(object sender, EventArgs e) { //如果鼠标在窗体上,则根据停靠位置显示整个窗体 if (this.Bounds.Contains(Cursor.Position)) { switch (this.StopDock) { case AnchorStyles.Top: this.Location = new Point(this.Location.X, 0); break; case AnchorStyles.Bottom: this.Location = new Point(this.Location.X, Screen.PrimaryScreen.Bounds.Height - this.Height); break; case AnchorStyles.Left: this.Location = new Point(0, this.Location.Y); break; case AnchorStyles.Right: this.Location = new Point(Screen.PrimaryScreen.Bounds.Width - this.Width, this.Location.Y); break; } } else //如果鼠标离开窗体,则根据停靠位置隐藏窗体,但须留出部分窗体边缘以便鼠标选中窗体 { switch (this.StopDock) { case AnchorStyles.Top: this.Location = new Point(this.Location.X, (this.Height - 3) * (-1)); break; case AnchorStyles.Bottom: this.Location = new Point(this.Location.X, Screen.PrimaryScreen.Bounds.Height - 5); break; case AnchorStyles.Left: this.Location = new Point((-1) * (this.Width - 3), this.Location.Y); break; case AnchorStyles.Right: this.Location = new Point(Screen.PrimaryScreen.Bounds.Width - 2, this.Location.Y); break; } } }
- 2015-06-10下载
- 积分:1
-
c# 通过反射创建实例并设置属性的例子源码
通过Reflection创建实例
- 2014-11-19下载
- 积分:1
-
C# 单机网络监听 实例源码
可实现本机TCP or udp网络监听
- 2014-11-17下载
- 积分:1
-
从数据库读取数据到treeview 示例源码下载
从数据库读取数据到treeview 示例源码下载
- 2021-04-09 20:08:59下载
- 积分:1
-
C# 198个winform 实例源码下载
198个winform 经典实例源码
- 2015-01-27下载
- 积分:1
-
常用数据库访问类 (sql server/mysql/access/oracle)源码下载
实用数据库访问类,封装常见的数据库访问类助手
- 2014-10-23下载
- 积分:1