- 博客(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 245
原创 漫谈 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 2032
转载 .NET之如何解析Json对象
JSON详解阅读目录JSON的两种结构认识JSON字符串在JS中如何使用JSON在.NET中如何使用JSON总结JSON的全称是”JavaScript Object Notation”,意思是JavaScript对象表示法,它是一种基于文本,独立于语言的轻量级数据交换格式。XML也是一种数据交换格式,为什么没有选择XML呢?因为XML虽然可以作为跨平台的数据交换
2016-06-16 09:58:51 1526
原创 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 208
原创 冒泡排序
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 196
原创 读取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 257
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人