自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

转载 C#之 String.Format对字符串格式化

1、格式化货币(跟系统的环境有关,中文系统默认格式化人民币,英文系统格式化美元) string.Format("{0:C}",0.2) 结果为:¥0.20 (英文操作系统结果:$0.20) 默认格式化小数点后面保留两位小数,如果需要保留一位或者更多,可以指定位数 string.Format("{0:C1}",23.15) 结果为:¥23.2 (截取会自动四舍五入) 格式化多个O

2016-06-06 11:54:48 250

原创 漫谈 ADO.NET之四大核心对象

本人热爱Java,可最终做了c#工作,人生之一大憾事,俗话说,水浅王八多,遍地是大哥,也只好苟存于社会的残垣瓦砾之下! 下面是第一次使用四个“小对象”的具体实现代码 (Oracle 数据库) using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Th

2016-06-27 15:47:19 2084

转载 .NET之如何解析Json对象

JSON详解 阅读目录 JSON的两种结构认识JSON字符串在JS中如何使用JSON在.NET中如何使用JSON总结 JSON的全称是”JavaScript Object Notation”,意思是JavaScript对象表示法,它是一种基于文本,独立于语言的轻量级数据交换格式。XML也是一种数据交换格式,为什么没有选择XML呢?因为XML虽然可以作为跨平台的数据交换

2016-06-16 09:58:51 1624

转载 ADO.NET

QWER

2016-06-15 10:22:26 249

原创 Linq to Xml

使用linq to xml 创建xml文件,查询xml文件中的信息 未完待续····· using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using System

2016-06-03 17:48:12 221

原创 冒泡排序

namespace ConsoleApplication6 { class SortHelper where T : IComparable { public void BuubleSort(T[] arr) { int length = arr.Length; for (int i = 0; i <

2016-06-03 16:05:30 205

原创 读取xml

如何读取xml文件中的数据, using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tas

2016-06-03 14:57:03 272

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除