随笔 - 547  文章 - 213 评论 - 417 阅读 - 107万

文章分类 -  .net基础知识

上一页 1 2
DateTime.Now的几种格式
摘要:DateTime.Now的后面有若干个ToString(),ToShortTimeString()之类的东东,到底都是干啥用的,还是做个程序测试一下吧 string str = ""; str += "ToShortDateString:" + DateTime.Now.ToShortDateString() + ""; ... 阅读全文
posted @ 2006-02-13 11:43 今夜太冷 阅读(4931) 评论(0) 推荐(0) 编辑
FormsAuthentication.HashPasswordForStoringInConfigFile 方法 之研究
摘要:给定标识哈希类型的密码和字符串,该例程产生一个适合存储在配置文件中的哈希密码。 [C#] public static string HashPasswordForStoringInConfigFile( string password, string passwordFormat ); 参数 password 要进行哈希运算的密码。 passwordFormat 要... 阅读全文
posted @ 2006-01-24 11:20 今夜太冷 阅读(10292) 评论(2) 推荐(2) 编辑
一个测试常数的小程序分析
摘要:试验1: 将下面的代码编译成一个程序集 using System;namespace TestConst1{ /// /// Class1 的摘要说明。 /// public class Component { //注意: c#不允许为常数指定static关键字 //因为常数隐含为static public con... 阅读全文
posted @ 2006-01-05 12:57 今夜太冷 阅读(282) 评论(0) 推荐(0) 编辑

上一页 1 2
点击右上角即可分享
微信分享提示