- 博客(13)
- 收藏
- 关注

转载 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
286
原创 更改网络ip后如何重新配置Oracle数据库监听
premise:本地环境是win7,由于在公司换了工位,之前用的固定ip:192.168.3.83,oracle监听也是此ip.但是现在的自动获取,Oracle监听君与我从此成为路人。解决办法:Step one:将下图两处ip更新成当前ip注释:更改此ip后配置文件里的ip将自动跟随更改。这里所说的配置文件为Setp two;更改plsql中的配置文
2016-10-19 17:27:50
4686
原创 漫谈 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
2154
转载 .NET之如何解析Json对象
JSON详解阅读目录JSON的两种结构认识JSON字符串在JS中如何使用JSON在.NET中如何使用JSON总结JSON的全称是”JavaScript Object Notation”,意思是JavaScript对象表示法,它是一种基于文本,独立于语言的轻量级数据交换格式。XML也是一种数据交换格式,为什么没有选择XML呢?因为XML虽然可以作为跨平台的数据交换
2016-06-16 09:58:51
1713
原创 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
240
原创 冒泡排序
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
221
原创 读取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
292
原创 使用windows 窗体应用程序编写简单的阅读器
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;usin
2016-05-25 16:35:01
555
转载 http://www.cnblogs.com/iamlilinfeng/archive/2012/09/25/2700049.html
this is the rdis
2016-05-23 17:57:13
955
原创 c#之索引器
C#语言一个最令人感兴趣的地方就是类的索引器(indexer)。简单说来,所谓索引器就是一类特殊的属性,通过它们你就可以像引用数组一样引用 自己的类。a,索引器可以被重载b,索引器智能用于实例,不能用于静态以字符串作为下标,对索引器进行存取
2016-05-23 15:27:11
363
原创 oh , the first !
The day is 2016-5-23, what an ordinary day, my work has not stable.i listening music what i do not like.whatever ,software develop , is my final way!
2016-05-23 10:32:28
195
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人