• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






weixu

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2007年8月21日

DataFormatString格式化
摘要: DataFormatString="{0:格式字符串}" 在DataFormatString 中的 {0} 表示数据本身,而在冒号后面的格式字符串代表所们希望数据显示的格式;数字、货币格式:在指定的格式符号后可以指定小数所要显示的位数。例如原来的数据为「1.56」,若格式设定为 {0:N1},则输出为「1.5」。其常用的数值格式如下表所示: 格式字符串输入结果 "{0:C}" 12345.6789... 阅读全文
posted @ 2007-08-21 22:48 少一点... 阅读(408) 评论(0) 推荐(0)
 
对称加密(DES)
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Security.Cryptography;usingSystem.IO;namespaceComponent{publicclassSecurity{publicSecurity(){}//默认密钥向量privatestaticbyte[]Keys={... 阅读全文
posted @ 2007-08-21 18:39 少一点... 阅读(273) 评论(0) 推荐(0)